Skip to content

chore: Add all targets #15

chore: Add all targets

chore: Add all targets #15

Workflow file for this run

name: "Check and build"
on:
push:
branches:
- feat/CRC-28/migration
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
lint:
name: Lint
runs-on: ubuntu-latest
steps:
- name: Check out
uses: actions/checkout@v4
- uses: ./.github/actions/install
id: install
- name: Nx cache
id: cache-nx
uses: actions/cache@v4
with:
path: .nx
key: nx-cache-lint-${{ github.ref }}
- name: Lint
run: pnpm nx run-many --target=lint --all
check-spell:
name: Check spelling
runs-on: ubuntu-latest
needs: lint
steps:
- name: Check out
uses: actions/checkout@v4
- uses: ./.github/actions/install
id: install
- name: Nx cache
id: cache-nx
uses: actions/cache@v4
with:
path: .nx
key: nx-cache-check-spell-${{ github.ref }}
restore-keys: |
nx-cache-lint-${{ github.ref }}
- name: Check spelling
run: pnpm nx run-many --target=check:spell --all
check-types:
name: Check types
runs-on: ubuntu-latest
needs: check-spell
steps:
- name: Check out
uses: actions/checkout@v4
- uses: ./.github/actions/install
id: install
- name: Nx cache
id: cache-nx
uses: actions/cache@v4
with:
path: .nx
key: nx-cache-check-types-${{ github.ref }}
restore-keys: |
nx-cache-check-spell-${{ github.ref }}
- name: Check types
run: pnpm nx run-many --target=check:types --all
test-unit:
name: Test unit
runs-on: ubuntu-latest
needs: check-types
steps:
- name: Check out
uses: actions/checkout@v4
- uses: ./.github/actions/install
id: install
- name: Nx cache
id: cache-nx
uses: actions/cache@v4
with:
path: .nx
key: nx-cache-test-unit-${{ github.ref }}
restore-keys: |
nx-cache-check-types-${{ github.ref }}
- name: Check types
run: pnpm nx run-many --target=test:unit --all
build:
name: Build
runs-on: ubuntu-latest
needs: test-unit
steps:
- name: Check out
uses: actions/checkout@v4
- uses: ./.github/actions/install
id: install
- name: Nx cache
id: cache-nx
uses: actions/cache@v4
with:
path: .nx
key: nx-cache-build-${{ github.ref }}
restore-keys: |
nx-cache-test-unit-${{ github.ref }}
- name: Check types
run: pnpm nx run-many --target=build --all
test-component:
name: Test component
runs-on: ubuntu-latest
needs: test-unit
steps:
- name: Check out
uses: actions/checkout@v4
- uses: ./.github/actions/install
id: install
- name: Nx cache
id: cache-nx
uses: actions/cache@v4
with:
path: .nx
key: nx-cache-test-component-${{ github.ref }}
restore-keys: |
nx-cache-build-${{ github.ref }}
- name: Check types
run: pnpm nx run-many --target=test:component --all