@@ -12,20 +12,27 @@ jobs:
1212 lint :
1313 runs-on : ubuntu-latest
1414 steps :
15- - uses : actions/checkout@v4
15+ - uses : actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
16+ with :
17+ fetch-depth : 0
18+
1619 - name : Use Node.js
17- uses : actions/setup-node@v4
20+ uses : actions/setup-node@53b83947a5a98c8d113130e565377fae1a50d02f # v6.3.0
1821 with :
1922 node-version : lts/*
2023 cache : " npm"
24+
2125 - run : npm ci
26+
2227 - name : Cache eslint result
23- uses : actions/cache@v4
28+ uses : actions/cache@cdf6c1fa76f9f475f3d7449005a359c84ca0f306 # v5.0.3
2429 with :
2530 path : .eslintcache
2631 key : lint-eslint-${{ runner.os }}-node-${{ hashFiles('**/package-lock.json', '**/eslint.config.mjs') }}
2732 restore-keys : lint-eslint-
33+
2834 - run : npm run lint
35+
2936 test :
3037 strategy :
3138 fail-fast : true
5461 polling : " 200"
5562 runs-on : ${{ matrix.os }}
5663 steps :
57- - uses : actions/checkout@v4
58- - uses : actions/github-script@v7
64+ - uses : actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
65+ with :
66+ fetch-depth : 0
67+
68+ - uses : actions/github-script@ed597411d8f924073f98dfc5c65a23a2325f34cd # v8.0.0
5969 id : calculate_architecture
6070 with :
6171 result-encoding : string
@@ -65,20 +75,25 @@ jobs:
6575 } else {
6676 return ''
6777 }
78+
6879 - name : Use Node.js ${{ matrix.node-version }}
69- uses : actions/setup-node@v4
80+ uses : actions/setup-node@53b83947a5a98c8d113130e565377fae1a50d02f # v6.3.0
7081 with :
7182 node-version : ${{ matrix.node-version }}
7283 architecture : ${{ steps.calculate_architecture.outputs.result }}
7384 cache : " npm"
85+
7486 - run : npm install --ignore-engines
7587 if : matrix.node-version == '10.x' || matrix.node-version == '12.x' || matrix.node-version == '14.x'
88+
7689 - run : npm ci
7790 if : matrix.node-version != '10.x' && matrix.node-version != '12.x' && matrix.node-version != '14.x'
91+
7892 - run : npm run test:coverage
7993 env :
8094 WATCHPACK_POLLING : ${{ matrix.polling }}
81- - uses : codecov/codecov-action@v5
95+
96+ - uses : codecov/codecov-action@671740ac38dd9b0130fbe1cec585b89eea48d3de # v5.5.2
8297 with :
8398 flags : integration
8499 token : ${{ secrets.CODECOV_TOKEN }}
0 commit comments