Skip to content

feat: implement transition guards #3

feat: implement transition guards

feat: implement transition guards #3

Workflow file for this run

name: Validate code
on:
push:
branches:
- 'dev'
jobs:
setup:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- uses: actions/setup-node@v3
with:
node-version: '18'
- name: Get yarn cache directory path
id: yarn-cache-dir-path
run: echo "dir=$(yarn config get cacheFolder)" >> $GITHUB_OUTPUT
shell: bash
- name: Restore yarn cache
uses: actions/cache@v3
with:
path: ${{ steps.yarn-cache-dir-path.outputs.dir }}
key: yarn-cache-folder-${{ hashFiles('**/yarn.lock') }}
restore-keys: |
yarn-cache-folder-
- name: Install dependencies
run: yarn install
- name: Run linter
run: yarn lint
- name: Run tests
run: yarn test