Skip to content

Commit 9e4c47f

Browse files
committed
build: update github actions
1 parent f6a4f0f commit 9e4c47f

File tree

8 files changed

+76
-35
lines changed

8 files changed

+76
-35
lines changed

.github/codeql/codeql-config.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
name: "CodeQL config"
2+
paths-ignore:
3+
- dist

.github/workflows/bundlewatch.yml

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,22 +2,27 @@ name: Bundlewatch
22

33
on:
44
push:
5-
branches-ignore:
6-
- "dependabot/**"
5+
branches:
6+
- v5
77
pull_request:
88
workflow_dispatch:
99

1010
env:
1111
FORCE_COLOR: 2
12-
NODE: 16
12+
NODE: 18
13+
14+
permissions:
15+
contents: read
1316

1417
jobs:
1518
bundlewatch:
1619
runs-on: ubuntu-latest
1720

1821
steps:
1922
- name: Clone repository
20-
uses: actions/checkout@v3
23+
uses: actions/checkout@v4
24+
with:
25+
persist-credentials: false
2126

2227
- name: Set up Node.js
2328
uses: actions/setup-node@v3
@@ -35,4 +40,4 @@ jobs:
3540
run: npm run bundlewatch
3641
env:
3742
BUNDLEWATCH_GITHUB_TOKEN: "${{ secrets.BUNDLEWATCH_GITHUB_TOKEN }}"
38-
CI_BRANCH_BASE: main
43+
CI_BRANCH_BASE: main

.github/workflows/codeql.yml

Lines changed: 13 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -4,35 +4,41 @@ on:
44
push:
55
branches:
66
- main
7-
- dev
7+
- v5
88
- "!dependabot/**"
99
pull_request:
10-
# The branches below must be a subset of the branches above
1110
branches:
1211
- main
13-
- v4-dev
12+
- v5
1413
- "!dependabot/**"
1514
schedule:
16-
- cron: "0 2 * * 5"
15+
- cron: "0 2 * * 4"
1716
workflow_dispatch:
1817

1918
jobs:
2019
analyze:
2120
name: Analyze
2221
runs-on: ubuntu-latest
2322
permissions:
24-
actions: read
25-
contents: read
2623
security-events: write
2724

2825
steps:
2926
- name: Checkout repository
30-
uses: actions/checkout@v3
27+
uses: actions/checkout@v4
28+
with:
29+
persist-credentials: false
3130

3231
- name: Initialize CodeQL
3332
uses: github/codeql-action/init@v2
3433
with:
34+
config-file: ./.github/codeql/codeql-config.yml
3535
languages: "javascript"
36+
queries: +security-and-quality
37+
38+
- name: Autobuild
39+
uses: github/codeql-action/autobuild@v2
3640

3741
- name: Perform CodeQL Analysis
3842
uses: github/codeql-action/analyze@v2
43+
with:
44+
category: "/language:javascript"

.github/workflows/css.yml

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,22 +2,27 @@ name: CSS
22

33
on:
44
push:
5-
branches-ignore:
6-
- "dependabot/**"
5+
branches:
6+
- v5
77
pull_request:
88
workflow_dispatch:
99

1010
env:
1111
FORCE_COLOR: 2
12-
NODE: 16
12+
NODE: 18
13+
14+
permissions:
15+
contents: read
1316

1417
jobs:
1518
css:
1619
runs-on: ubuntu-latest
1720

1821
steps:
1922
- name: Clone repository
20-
uses: actions/checkout@v3
23+
uses: actions/checkout@v4
24+
with:
25+
persist-credentials: false
2126

2227
- name: Set up Node.js
2328
uses: actions/setup-node@v3
@@ -30,3 +35,6 @@ jobs:
3035

3136
- name: Build CSS
3237
run: npm run css
38+
39+
- name: Run CSS tests
40+
run: npm run css-test

.github/workflows/docs.yml

Lines changed: 11 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,22 +2,27 @@ name: Docs
22

33
on:
44
push:
5-
branches-ignore:
6-
- "dependabot/**"
5+
branches:
6+
- v5
77
pull_request:
88
workflow_dispatch:
99

1010
env:
1111
FORCE_COLOR: 2
12-
NODE: 16
12+
NODE: 18
13+
14+
permissions:
15+
contents: read
1316

1417
jobs:
1518
docs:
1619
runs-on: ubuntu-latest
1720

1821
steps:
1922
- name: Clone repository
20-
uses: actions/checkout@v3
23+
uses: actions/checkout@v4
24+
with:
25+
persist-credentials: false
2126

2227
- name: Set up Node.js
2328
uses: actions/setup-node@v3
@@ -39,7 +44,7 @@ jobs:
3944
- name: Run linkinator
4045
uses: JustinBeckwith/linkinator-action@v1
4146
with:
42-
paths: _site
47+
paths: _gh-pages
4348
recurse: true
4449
verbosity: error
45-
skip: "^(?!http://localhost)"
50+
skip: "^(?!http://localhost)"

.github/workflows/js.yml

Lines changed: 15 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,23 +2,32 @@ name: JS Tests
22

33
on:
44
push:
5-
branches-ignore:
6-
- "dependabot/**"
5+
branches:
6+
- v5
77
pull_request:
88
workflow_dispatch:
99

1010
env:
1111
FORCE_COLOR: 2
12-
NODE: 16
12+
NODE: 18
13+
14+
permissions:
15+
contents: read
1316

1417
jobs:
1518
run:
19+
permissions:
20+
# allow coverallsapp/github-action to create new checks issues and fetch code
21+
checks: write
22+
contents: read
1623
name: JS Tests
1724
runs-on: ubuntu-latest
1825

1926
steps:
2027
- name: Clone repository
21-
uses: actions/checkout@v3
28+
uses: actions/checkout@v4
29+
with:
30+
persist-credentials: false
2231

2332
- name: Set up Node.js
2433
uses: actions/setup-node@v3
@@ -36,7 +45,7 @@ jobs:
3645
run: npm run js-test
3746

3847
- name: Run Coveralls
39-
uses: coverallsapp/github-action@1.1.3
48+
uses: coverallsapp/github-action@v2
4049
with:
4150
github-token: "${{ secrets.GITHUB_TOKEN }}"
42-
path-to-lcov: "./js/coverage/lcov.info"
51+
path-to-lcov: "./js/coverage/lcov.info"

.github/workflows/lint.yml

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,22 +2,27 @@ name: Lint
22

33
on:
44
push:
5-
branches-ignore:
6-
- "dependabot/**"
5+
branches:
6+
- v5
77
pull_request:
88
workflow_dispatch:
99

1010
env:
1111
FORCE_COLOR: 2
12-
NODE: 16
12+
NODE: 18
13+
14+
permissions:
15+
contents: read
1316

1417
jobs:
1518
lint:
1619
runs-on: ubuntu-latest
1720

1821
steps:
1922
- name: Clone repository
20-
uses: actions/checkout@v3
23+
uses: actions/checkout@v4
24+
with:
25+
persist-credentials: false
2126

2227
- name: Set up Node.js
2328
uses: actions/setup-node@v3
@@ -29,4 +34,4 @@ jobs:
2934
run: npm ci
3035

3136
- name: Lint
32-
run: npm run lint
37+
run: npm run lint

.github/workflows/node-sass.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ name: CSS (node-sass)
33
on:
44
push:
55
branches:
6-
- main
6+
- v5
77
pull_request:
88
workflow_dispatch:
99

@@ -20,7 +20,7 @@ jobs:
2020

2121
steps:
2222
- name: Clone repository
23-
uses: actions/checkout@v3
23+
uses: actions/checkout@v4
2424
with:
2525
persist-credentials: false
2626

0 commit comments

Comments
 (0)