Skip to content

Merge branch 'main' into feat/limit-order-v4 #152

Merge branch 'main' into feat/limit-order-v4

Merge branch 'main' into feat/limit-order-v4 #152

Workflow file for this run

name: CI

Check failure on line 1 in .github/workflows/pr.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/pr.yml

Invalid workflow file

No steps defined in `steps` and no workflow called in `uses` for the following jobs: setup
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: ${{ github.ref != 'refs/heads/main' }}
on:
pull_request:
branches:
- main
jobs:
setup:
name: Setup
runs-on: ubuntu-20.04
static-checks:
name: Static checks
needs: setup
runs-on: ubuntu-20.04
steps:
- name: Load current commit
uses: actions/checkout@v3
with:
ref: ${{ github.ref }}
- name: Setup Node.js
uses: volta-cli/action@v4
- name: Restore cache
uses: actions/cache@v3
id: yarn-cache
if: github.event_name == 'pull_request' || github.event_name == 'push'
with:
path: '**/node_modules'
key: ${{ runner.os }}-modules-1-${{ hashFiles('**/yarn.lock') }}
- name: Install dependencies
if: steps.yarn-cache.outputs.cache-hit != 'true'
run: |
yarn --frozen-lockfile --no-progress
- name: Prettier check
run: yarn prettier:check
- name: Linter
run: yarn lint
- name: Type check
run: yarn typecheck
tests:
name: Unit tests
needs: setup
runs-on: ubuntu-20.04
steps:
- name: Load current commit
uses: actions/checkout@v3
with:
ref: ${{ github.ref }}
- name: Setup Node.js
uses: volta-cli/action@v4
- name: Restore cache
uses: actions/cache@v3
id: yarn-cache
if: github.event_name == 'pull_request' || github.event_name == 'push'
with:
path: '**/node_modules'
key: ${{ runner.os }}-modules-${{ hashFiles('**/yarn.lock') }}
- name: Install dependencies
if: steps.yarn-cache.outputs.cache-hit != 'true'
run: |
yarn --frozen-lockfile --no-progress
- name: Run unit tests
run: yarn test