@@ -13,14 +13,20 @@ jobs:
1313 lint :
1414 runs-on : ubuntu-latest
1515 steps :
16- - uses : actions/checkout@v4
16+ - uses : actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
17+ with :
18+ fetch-depth : 0
19+
1720 - name : Use Node.js
18- uses : actions/setup-node@v4
21+ uses : actions/setup-node@53b83947a5a98c8d113130e565377fae1a50d02f # v6.3.0
1922 with :
2023 node-version : lts/*
2124 cache : npm
25+
2226 - run : npm ci
27+
2328 - run : npm run lint
29+
2430 test :
2531 strategy :
2632 fail-fast : false
4147 ]
4248 runs-on : ${{ matrix.os }}
4349 steps :
44- - uses : actions/checkout@v4
45- - uses : actions/github-script@v7
50+ - uses : actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
51+ with :
52+ fetch-depth : 0
53+
54+ - uses : actions/github-script@ed597411d8f924073f98dfc5c65a23a2325f34cd # v8.0.0
4655 id : calculate_architecture
4756 with :
4857 result-encoding : string
@@ -52,21 +61,26 @@ jobs:
5261 } else {
5362 return ''
5463 }
64+
5565 - name : Use Node.js ${{ matrix.node-version }}
56- uses : actions/setup-node@v4
66+ uses : actions/setup-node@53b83947a5a98c8d113130e565377fae1a50d02f # v6.3.0
5767 with :
5868 node-version : ${{ matrix.node-version }}
5969 architecture : ${{ steps.calculate_architecture.outputs.result }}
6070 cache : npm
71+
6172 - name : Install dependencies
6273 run : npm install
6374 if : matrix.node-version == '8.x' || matrix.node-version == '10.x' || matrix.node-version == '12.x' || matrix.node-version == '14.x'
75+
6476 - name : Install dependencies
6577 run : npm ci
6678 if : matrix.node-version != '8.x' && matrix.node-version != '10.x' && matrix.node-version != '12.x' && matrix.node-version != '14.x'
79+
6780 - name : Run tests with coverage
6881 run : npm run test -- --ci --coverage
69- - uses : codecov/codecov-action@v5
82+
83+ - uses : codecov/codecov-action@671740ac38dd9b0130fbe1cec585b89eea48d3de # v5.5.2
7084 with :
7185 flags : integration
7286 token : ${{ secrets.CODECOV_TOKEN }}
0 commit comments