Skip to content

Bump actions/cache from 3 to 4 #304

Bump actions/cache from 3 to 4

Bump actions/cache from 3 to 4 #304

Workflow file for this run

name: test
on: [push, pull_request]
jobs:
unit:
runs-on: ubuntu-22.04
strategy:
matrix:
node: [16]
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Install Node ${{ matrix.node }}
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node }}
- name: Get yarn cache
id: yarn-cache
run: echo "dir=$(yarn cache dir)" >> $GITHUB_OUTPUT
- uses: actions/cache@v4
with:
path: ${{ steps.yarn-cache.outputs.dir }}
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
restore-keys: |
${{ runner.os }}-yarn-
- name: Install NPM Packages
run: yarn install
- name: Check licenses
run: yarn build:license-checker
- name: Test
run: yarn test
- name: Build
run: yarn build
- name: Upload artifacts
uses: actions/upload-artifact@v4
with:
name: upload-artifacts
path: var
if: always()