Skip to content

Commit 2c75fba

Browse files
authored
Merge pull request #864 from SergeAstapov/ci-caching
Cache dependencies in GitHub Actions CI workflow
2 parents 3a9abb2 + dd6440a commit 2c75fba

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

.github/workflows/ci.yml

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,9 +32,10 @@ jobs:
3232
- name: Checkout Code
3333
uses: actions/checkout@v2
3434
- name: Use Node.js ${{ matrix.node-version }}
35-
uses: actions/setup-node@v1
35+
uses: actions/setup-node@v2
3636
with:
3737
node-version: ${{ matrix.node-version }}
38+
cache: yarn
3839
- name: Yarn Install
3940
run: yarn install --ignore-engines --frozen-lockfile
4041
- name: Run ember-cli-fastboot Tests
@@ -60,9 +61,10 @@ jobs:
6061
- name: Checkout Code
6162
uses: actions/checkout@v2
6263
- name: Use Node.js ${{ matrix.node-version }}
63-
uses: actions/setup-node@v1
64+
uses: actions/setup-node@v2
6465
with:
6566
node-version: ${{ matrix.node-version }}
67+
cache: yarn
6668
- name: Yarn Install
6769
run: yarn install --ignore-engines --frozen-lockfile
6870
- name: Integration Tests
@@ -81,9 +83,10 @@ jobs:
8183
- name: Checkout Code
8284
uses: actions/checkout@v2
8385
- name: Use Node.js ${{ matrix.node-version }}
84-
uses: actions/setup-node@v1
86+
uses: actions/setup-node@v2
8587
with:
8688
node-version: ${{ matrix.node-version }}
89+
cache: yarn
8790
- name: Yarn Install
8891
run: yarn install --ignore-engines --frozen-lockfile
8992
- name: Basic App
@@ -144,6 +147,7 @@ jobs:
144147
- uses: actions/setup-node@v2
145148
with:
146149
node-version: 14
150+
cache: yarn
147151
- run: yarn install --ignore-engines --frozen-lockfile
148152
- name: test
149153
run: yarn workspace ember-cli-fastboot ember try:one ${{ matrix.ember-try-scenario }} --skip-cleanup

0 commit comments

Comments
 (0)