chore(deps): update all dependencies #389
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Tests | |
on: | |
push: | |
branches: | |
- master | |
pull_request: | |
jobs: | |
build: | |
strategy: | |
matrix: | |
os: [macos-latest, ubuntu-latest, windows-latest] | |
runs-on: ${{ matrix.os }} | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-node@v4 | |
with: | |
node-version: 14.x | |
- name: Get yarn cache directory path | |
id: yarn-cache-dir-path | |
run: echo "::set-output name=dir::$(yarn cache dir)" | |
# fork to always run cache save, see https://github.com/actions/cache/issues/92 | |
# Remove after https://github.com/actions/setup-node/pull/272 is launched | |
- name: Restore yarn cache | |
uses: bbugh/cache@c64c572235d810460d0d6876e9c705ad5002b353 | |
id: yarn-cache | |
with: | |
path: | | |
${{ steps.yarn-cache-dir-path.outputs.dir }} | |
node_modules | |
key: ${{ runner.os }}-v1-yarn-${{ hashFiles('**/yarn.lock') }} | |
restore-keys: ${{ runner.os }}-v1-yarn- | |
- run: yarn install --frozen-lockfile --prefer-offline | |
- name: xvfb-run -a yarn test (Linux) | |
run: xvfb-run -a yarn test | |
if: runner.os == 'Linux' | |
- name: yarn test (MacOS/Windows) | |
run: yarn test | |
if: runner.os != 'Linux' |