Chore: Fix Workflows #76
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
# yaml-language-server: $schema=https://json.schemastore.org/github-workflow.json | |
name: Frontend test | |
on: | |
pull_request: | |
branches: | |
- main | |
jobs: | |
frontend-test: | |
runs-on: ubuntu-latest | |
steps: | |
- name: 🛎 Checkout | |
uses: actions/checkout@v4 | |
- name: Get yarn cache path | |
id: yarn-cache-dir-path | |
run: echo "dir=$(yarn cache dir)" >> $GITHUB_OUTPUT | |
- name: ⚡ NPM Cache | |
uses: actions/cache@v4 | |
with: | |
path: ${{ steps.yarn-cache-dir-path.outputs.dir }} | |
key: ${{ runner.os }}-yarn-${{ hashFiles('yarn.lock') }} | |
- name: 🔧 Install dependencies | |
run: yarn | |
- name: Check lint | |
run: yarn lint | |
- name: Pretend we have data.json and run tests | |
run: cp public/test-file.json public/data.json && yarn test |