Skip to content

Fix workflows

Fix workflows #66

Workflow file for this run

name: Run actions on Pull Request or Push
on:
push:
branches:
- master
pull_request:
branches:
- master
types:
- opened
- synchronize
- reopened
- ready_for_review
jobs:
test:
name: Run test & lint
runs-on: Ubuntu-20.04
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: '18.x'
- uses: actions/cache@v4
id: yarn-cache
with:
path: |
node_modules
*/*/node_modules
key: node18-${{ runner.os }}-install-${{ hashFiles('**/yarn.lock') }}
- run: yarn install
if: ${{ steps.yarn-cache.outputs.cache-hit != 'true' }}
- run: yarn install --prefers-offline
if: ${{ steps.yarn-cache.outputs.cache-hit == 'true' }}
- run: yarn run test
- run: yarn run lint