File tree Expand file tree Collapse file tree 9 files changed +25
-8
lines changed Expand file tree Collapse file tree 9 files changed +25
-8
lines changed Original file line number Diff line number Diff line change 11name : Install dependencies
22description : Install dependencies
3+ inputs :
4+ cache :
5+ description : " Whether to enable caching of node_modules."
6+ required : false
7+ default : ' false'
38runs :
49 using : composite
5- steps : # retry in case of server error from registry
10+ steps :
11+ - id : yarn-cache
12+ uses : actions/cache@v4
13+ with :
14+ key : yarn-cache-${{ github.workflow }}-${{ github.job }}-${{ hashFiles('yarn.lock') }}
15+ path : node_modules.tar
16+ if : inputs.cache == 'true'
17+ - run : 7z x -y node_modules.tar
18+ shell : bash
19+ if : inputs.cache == 'true' && steps.yarn-cache.outputs.cache-hit == 'true'
20+ # Retry in case of server error from registry.
621 - run : yarn install --frozen-lockfile --ignore-engines || yarn install --frozen-lockfile --ignore-engines
722 shell : bash
8-
23+ - run : 7z -mx0 a node_modules.tar node_modules
24+ shell : bash
25+ if : inputs.cache == 'true' && steps.yarn-cache.outputs.cache-hit != 'true'
Original file line number Diff line number Diff line change 55 steps :
66 - uses : actions/setup-node@v4
77 with :
8- cache : yarn
98 node-version : ' 22'
Original file line number Diff line number Diff line change 55 steps :
66 - uses : actions/setup-node@v4
77 with :
8- cache : yarn
98 node-version : ' latest'
Original file line number Diff line number Diff line change 55 steps :
66 - uses : actions/setup-node@v4
77 with :
8- cache : yarn
98 node-version : ' 20'
Original file line number Diff line number Diff line change 55 steps :
66 - uses : actions/setup-node@v4
77 with :
8- cache : yarn
98 node-version : ' 18'
Original file line number Diff line number Diff line change 4444 - uses : actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
4545 - uses : ./.github/actions/node/active-lts
4646 - uses : ./.github/actions/install
47+ with :
48+ cache : ' true'
4749 - run : yarn test:appsec:ci
4850 - uses : codecov/codecov-action@13ce06bfc6bbe3ecf90edbbf1bc32fe5978ca1d3 # v5.3.1
4951
@@ -230,7 +232,6 @@ jobs:
230232 - uses : ./.github/actions/testagent/start
231233 - uses : actions/setup-node@1d0ff469b7ec7b3cb9d8673fde0c81c44821de2a # v4.2.0
232234 with :
233- cache : yarn
234235 node-version : ${{ matrix.version }}
235236 - uses : ./.github/actions/install
236237 - run : yarn test:appsec:plugins:ci
Original file line number Diff line number Diff line change @@ -877,7 +877,6 @@ jobs:
877877 - uses : actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
878878 - uses : actions/setup-node@1d0ff469b7ec7b3cb9d8673fde0c81c44821de2a # v4.2.0
879879 with :
880- cache : yarn
881880 node-version : ' 16'
882881 - uses : ./.github/actions/install
883882 - run : yarn config set ignore-engines true
Original file line number Diff line number Diff line change 4949 - uses : actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
5050 - uses : ./.github/actions/node/active-lts
5151 - uses : ./.github/actions/install
52+ with :
53+ cache : ' true'
5254 - run : yarn test:profiler:ci
5355 - run : yarn test:integration:profiler
5456 - uses : codecov/codecov-action@13ce06bfc6bbe3ecf90edbbf1bc32fe5978ca1d3 # v5.3.1
Original file line number Diff line number Diff line change 4444 - uses : actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
4545 - uses : ./.github/actions/node/active-lts
4646 - uses : ./.github/actions/install
47+ with :
48+ cache : ' true'
4749 - run : yarn test:trace:core:ci
4850 - uses : codecov/codecov-action@13ce06bfc6bbe3ecf90edbbf1bc32fe5978ca1d3 # v5.3.1
You can’t perform that action at this time.
0 commit comments