Skip to content

Commit 7050368

Browse files
authoredApr 1, 2024··
Merge pull request #4 from zwoo-hq/dependabot/github_actions/super-linter/super-linter-6
build(deps): bump super-linter/super-linter from 5 to 6
2 parents 5bbc6f9 + 555e98f commit 7050368

File tree

4 files changed

+13
-10
lines changed

4 files changed

+13
-10
lines changed
 

‎.github/workflows/codeql-analysis.yml

+2
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@ on:
88
branches:
99
- main
1010

11+
permissions: read-all
12+
1113
jobs:
1214
analyze:
1315
name: Analyze

‎.github/workflows/linter.yml

+3-1
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,8 @@ jobs:
2020
- name: Checkout
2121
id: checkout
2222
uses: actions/checkout@v4
23+
with:
24+
fetch-depth: 0
2325

2426
- name: Setup Node.js
2527
id: setup-node
@@ -34,7 +36,7 @@ jobs:
3436

3537
- name: Lint Codebase
3638
id: super-linter
37-
uses: super-linter/super-linter/slim@v5
39+
uses: super-linter/super-linter/slim@v6
3840
env:
3941
DEFAULT_BRANCH: main
4042
FILTER_REGEX_EXCLUDE: dist/**/*

‎__tests__/main.test.ts

+1-2
Original file line numberDiff line numberDiff line change
@@ -45,8 +45,7 @@ test('loads specific version', () => {
4545
expect.stringContaining(VERSION).asymmetricMatch(stdout)
4646
})
4747

48-
// TODO: unskip this until there is a latest version
49-
test.skip('runs with default', () => {
48+
test('runs with default', () => {
5049
const config = path.join(__dirname, '..', 'action.yml')
5150
// eslint-disable-next-line @typescript-eslint/no-explicit-any
5251
const action: any = yaml.load(fs.readFileSync(config, 'utf8'))

‎script/release

+7-7
Original file line numberDiff line numberDiff line change
@@ -28,9 +28,9 @@ BLUE='\033[0;34m'
2828
latest_tag=$(git describe --tags "$(git rev-list --tags --max-count=1)")
2929

3030
if [[ -z "$latest_tag" ]]; then
31-
# There are no existing release tags
32-
echo -e "No tags found (yet) - Continue to create and push your first tag"
33-
latest_tag="[unknown]"
31+
# There are no existing release tags
32+
echo -e "No tags found (yet) - Continue to create and push your first tag"
33+
latest_tag="[unknown]"
3434
fi
3535

3636
# Display the latest release tag
@@ -42,11 +42,11 @@ read -r -p 'Enter a new release tag (vX.X.X format): ' new_tag
4242
# Validate the new release tag
4343
tag_regex='v[0-9]+\.[0-9]+\.[0-9]+$'
4444
if echo "$new_tag" | grep -q -E "$tag_regex"; then
45-
echo -e "Tag: ${BLUE}$new_tag${OFF} is valid"
45+
echo -e "Tag: ${BLUE}$new_tag${OFF} is valid"
4646
else
47-
# Release tag is not `vX.X.X` format
48-
echo -e "Tag: ${BLUE}$new_tag${OFF} is ${RED}not valid${OFF} (must be in vX.X.X format)"
49-
exit 1
47+
# Release tag is not `vX.X.X` format
48+
echo -e "Tag: ${BLUE}$new_tag${OFF} is ${RED}not valid${OFF} (must be in vX.X.X format)"
49+
exit 1
5050
fi
5151

5252
# Tag the new release

0 commit comments

Comments
 (0)
Please sign in to comment.