File tree Expand file tree Collapse file tree 8 files changed +76
-35
lines changed
Expand file tree Collapse file tree 8 files changed +76
-35
lines changed Original file line number Diff line number Diff line change 1+ name : " CodeQL config"
2+ paths-ignore :
3+ - dist
Original file line number Diff line number Diff line change @@ -2,22 +2,27 @@ name: Bundlewatch
22
33on :
44 push :
5- branches-ignore :
6- - " dependabot/** "
5+ branches :
6+ - v5
77 pull_request :
88 workflow_dispatch :
99
1010env :
1111 FORCE_COLOR : 2
12- NODE : 16
12+ NODE : 18
13+
14+ permissions :
15+ contents : read
1316
1417jobs :
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
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
Original file line number Diff line number Diff line change 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
1918jobs :
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"
Original file line number Diff line number Diff line change @@ -2,22 +2,27 @@ name: CSS
22
33on :
44 push :
5- branches-ignore :
6- - " dependabot/** "
5+ branches :
6+ - v5
77 pull_request :
88 workflow_dispatch :
99
1010env :
1111 FORCE_COLOR : 2
12- NODE : 16
12+ NODE : 18
13+
14+ permissions :
15+ contents : read
1316
1417jobs :
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
3035
3136 - name : Build CSS
3237 run : npm run css
38+
39+ - name : Run CSS tests
40+ run : npm run css-test
Original file line number Diff line number Diff line change @@ -2,22 +2,27 @@ name: Docs
22
33on :
44 push :
5- branches-ignore :
6- - " dependabot/** "
5+ branches :
6+ - v5
77 pull_request :
88 workflow_dispatch :
99
1010env :
1111 FORCE_COLOR : 2
12- NODE : 16
12+ NODE : 18
13+
14+ permissions :
15+ contents : read
1316
1417jobs :
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
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)"
Original file line number Diff line number Diff line change @@ -2,23 +2,32 @@ name: JS Tests
22
33on :
44 push :
5- branches-ignore :
6- - " dependabot/** "
5+ branches :
6+ - v5
77 pull_request :
88 workflow_dispatch :
99
1010env :
1111 FORCE_COLOR : 2
12- NODE : 16
12+ NODE : 18
13+
14+ permissions :
15+ contents : read
1316
1417jobs :
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
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"
Original file line number Diff line number Diff line change @@ -2,22 +2,27 @@ name: Lint
22
33on :
44 push :
5- branches-ignore :
6- - " dependabot/** "
5+ branches :
6+ - v5
77 pull_request :
88 workflow_dispatch :
99
1010env :
1111 FORCE_COLOR : 2
12- NODE : 16
12+ NODE : 18
13+
14+ permissions :
15+ contents : read
1316
1417jobs :
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
2934 run : npm ci
3035
3136 - name : Lint
32- run : npm run lint
37+ run : npm run lint
Original file line number Diff line number Diff line change @@ -3,7 +3,7 @@ name: CSS (node-sass)
33on :
44 push :
55 branches :
6- - main
6+ - v5
77 pull_request :
88 workflow_dispatch :
99
2020
2121 steps :
2222 - name : Clone repository
23- uses : actions/checkout@v3
23+ uses : actions/checkout@v4
2424 with :
2525 persist-credentials : false
2626
You can’t perform that action at this time.
0 commit comments