feat(ci): add ci checks #5
Workflow file for this run
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
name: Unit Tests | |
on: | |
workflow_dispatch: | |
push: | |
branches: | |
- main | |
pull_request: | |
branches: | |
- main | |
merge_group: | |
branches: | |
- main | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.ref }} | |
cancel-in-progress: true | |
permissions: | |
contents: 'read' | |
actions: 'read' | |
jobs: | |
typecheck: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
with: | |
fetch-depth: 0 | |
- name: Setup | |
uses: ./.github/actions/setup | |
- name: Run TypeChecker | |
run: | | |
pnpm nx affected --base=$NX_BASE --head=$NX_HEAD --target=typecheck | |
lint: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
with: | |
fetch-depth: 0 | |
- name: Set up foundry | |
uses: foundry-rs/foundry-toolchain@v1 | |
- name: Setup | |
uses: ./.github/actions/setup | |
- name: Run Linters | |
run: | | |
pnpm nx affected --base=$NX_BASE --head=$NX_HEAD --target=lint | |
test: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
with: | |
fetch-depth: 0 | |
- name: Set up foundry | |
uses: foundry-rs/foundry-toolchain@v1 | |
- name: Setup | |
uses: ./.github/actions/setup | |
- name: Supersim Setup | |
uses: ./.github/actions/supersim | |
- name: Run Tests | |
run: | | |
pnpm nx affected --base=$NX_BASE --head=$NX_HEAD --target=test | |
e2e-tests: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
with: | |
fetch-depth: 0 | |
- name: Set up foundry | |
uses: foundry-rs/foundry-toolchain@v1 | |
- name: Setup | |
uses: ./.github/actions/setup | |
- name: Supersim Setup | |
uses: ./.github/actions/supersim | |
- name: Run E2E Tests | |
run: | | |
pnpm nx affected --base=$NX_BASE --head=$NX_HEAD --target=e2e-test |