Skip to content

Merge remote-tracking branch 'upstream/main' #10

Merge remote-tracking branch 'upstream/main'

Merge remote-tracking branch 'upstream/main' #10

Workflow file for this run

name: CI
on:
push:
jobs:
ci:
name: CI
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v3
with:
node-version: "20"
- name: Get yarn cache directory path
id: yarn-cache-dir-path
run: echo "dir=$(yarn cache dir)" >> $GITHUB_OUTPUT
- uses: actions/cache@v3
id: yarn-cache # use this to check for `cache-hit` (`steps.yarn-cache.outputs.cache-hit != 'true'`)
with:
path: ${{ steps.yarn-cache-dir-path.outputs.dir }}
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
restore-keys: |
${{ runner.os }}-yarn-
- name: Install packages
run: yarn
- name: ESLint
run: yarn run lint
- name: Prettier
run: yarn run prettier . --check
- name: Type check
run: yarn run typecheck
- name: Test
run: yarn run test