Skip to content

Commit

Permalink
PoC cache actions
Browse files Browse the repository at this point in the history
  • Loading branch information
alexandrebodin committed Nov 23, 2022
1 parent 879c7e2 commit d526d80
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 1 deletion.
6 changes: 5 additions & 1 deletion .github/workflows/checks.yml
Expand Up @@ -17,8 +17,12 @@ jobs:
steps:
- uses: actions/checkout@v3
- uses: ./.github/actions/check-pr-status

security-lockfile-analysis:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
cache: yarn
- uses: ./.github/actions/security/lockfile
15 changes: 15 additions & 0 deletions .github/workflows/tests.yml
Expand Up @@ -26,6 +26,11 @@ jobs:
with:
node-version: ${{ matrix.node }}
cache: yarn
- uses: actions/cache@v3
with:
path: '**/node_modules'
key: ${{ runner.os }}-${{ matrix.node }}-${{ hashFiles('**/yarn.lock') }}

- run: yarn install --frozen-lockfile
- name: Run lint
run: yarn run -s lint
Expand All @@ -43,6 +48,11 @@ jobs:
with:
node-version: ${{ matrix.node }}
cache: yarn
- uses: actions/cache@v3
with:
path: '**/node_modules'
key: ${{ runner.os }}-${{ matrix.node }}-${{ hashFiles('**/yarn.lock') }}

- run: yarn install --frozen-lockfile
- name: Run tests
run: yarn run -s test:unit --coverage
Expand All @@ -66,6 +76,11 @@ jobs:
with:
node-version: ${{ matrix.node }}
cache: yarn
- uses: actions/cache@v3
with:
path: '**/node_modules'
key: ${{ runner.os }}-${{ matrix.node }}-${{ hashFiles('**/yarn.lock') }}

- run: yarn install --frozen-lockfile
- name: Build
run: yarn build
Expand Down

0 comments on commit d526d80

Please sign in to comment.