Skip to content

Commit

Permalink
Ft 271 (#395)
Browse files Browse the repository at this point in the history
* rf-367 Updated node version on github actions

* ft-271 Added caching layers
  • Loading branch information
Njima1572 authored Aug 28, 2023
1 parent e19d9d0 commit 7a5bd0a
Showing 1 changed file with 30 additions and 0 deletions.
30 changes: 30 additions & 0 deletions .github/workflows/on-pull-request.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,16 @@ jobs:
- uses: actions/setup-node@v2
with:
node-version: '18'
- name: Get yarn cache directory path
id: yarn-cache-dir-path-client
run: echo "dir=$(yarn cache dir)" >> $GITHUB_OUTPUT
- uses: actions/cache@v3
id: yarn-cache
with:
path: client/${{ steps.yarn-cache-dir-path.outputs.dir }}
key: client-${{ runner.os }}-yarn-${{ hashFiles('client/yarn.lock') }}
restore-keys: |
client-${{ runner.os }}-yarn-
- name: Install dependencies
run: yarn install --frozen-lockfile
- name: Install Playwright
Expand All @@ -36,6 +46,16 @@ jobs:
- uses: actions/setup-node@v2
with:
node-version: '18'
- name: Get yarn cache directory path
id: yarn-cache-dir-path-client
run: echo "dir=$(yarn cache dir)" >> $GITHUB_OUTPUT
- uses: actions/cache@v3
id: yarn-cache
with:
path: client/${{ steps.yarn-cache-dir-path.outputs.dir }}
key: client-${{ runner.os }}-yarn-${{ hashFiles('client/yarn.lock') }}
restore-keys: |
client-${{ runner.os }}-yarn-
- name: Install modules
run: yarn install --frozen-lockfile
- name: Run ESLint
Expand All @@ -54,6 +74,16 @@ jobs:
- uses: actions/setup-node@v2
with:
node-version: '18'
- name: Get yarn cache directory path
id: yarn-cache-dir-path-server
run: echo "dir=$(yarn cache dir)" >> $GITHUB_OUTPUT
- uses: actions/cache@v3
id: yarn-cache
with:
path: server/${{ steps.yarn-cache-dir-path.outputs.dir }}
key: server-${{ runner.os }}-yarn-${{ hashFiles('server/yarn.lock') }}
restore-keys: |
server-${{ runner.os }}-yarn-
- name: Install modules
run: yarn install --frozen-lockfile
- name: Run TSLint
Expand Down

0 comments on commit 7a5bd0a

Please sign in to comment.