@@ -17,6 +17,7 @@ concurrency:
1717jobs :
1818 test :
1919 runs-on : ${{ matrix.os }}
20+ timeout-minutes : 30
2021 strategy :
2122 matrix :
2223 os :
2829 permissions :
2930 contents : write
3031 steps :
31- - uses : actions/checkout@v6
32+ - uses : actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
3233
33- - uses : actions/setup-node@v6
34+ - uses : actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6.4.0
3435 with :
3536 node-version-file : " .nvmrc"
3637 cache : ' npm'
4445 - run : npm ci --ignore-scripts
4546
4647 - name : npm audit
47- if : startsWith(matrix.os, 'ubuntu-22 .04')
48+ if : startsWith(matrix.os, 'ubuntu-24 .04')
4849 run : |
4950 npm audit > ./audit.log || true
5051 if ! [ "$(cat ./audit.log | wc -l)" = 1 ]; then
@@ -53,22 +54,22 @@ jobs:
5354 rm ./audit.log
5455
5556 - name : Run prettier
56- if : startsWith(matrix.os, 'ubuntu-22 .04')
57+ if : startsWith(matrix.os, 'ubuntu-24 .04')
5758 run : npm run format:check
5859
5960 - name : Run eslint
60- if : startsWith(matrix.os, 'ubuntu-22 .04')
61+ if : startsWith(matrix.os, 'ubuntu-24 .04')
6162 run : npm run lint
6263
6364 - run : npm test
6465
6566 - name : Upload test coverage as artifact
66- uses : actions/upload-artifact@v7
67+ uses : actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1
6768 with :
6869 name : coverage-${{ matrix.os }}
6970 path : coverage
7071
71- - uses : codecov/codecov-action@v4
72+ - uses : codecov/codecov-action@b9fd7d16f6d7d1b5d2bec1a2887e65ceed900238 # v4.6.0
7273
7374 - name : Run build
7475 run : npm run build
8182
8283 - name : Setup mdBook
8384 if : ${{ github.ref == 'refs/heads/main' }}
84- uses : peaceiris/actions-mdbook@v2.0.0
85+ uses : peaceiris/actions-mdbook@ee69d230fe19748b7abf22df32acaa93833fad08 # v2.0.0
8586 with :
8687 mdbook-version : ' 0.4.5'
8788
0 commit comments