Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 19 additions & 3 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,20 +6,36 @@ on:
pull_request:

jobs:
build:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
ref: ${{ github.event.pull_request.head.sha }}
- uses: actions/setup-node@v4
with:
cache: yarn
node-version-file: package.json
- run: yarn --immutable
- run: yarn lint --max-warnings=0
ctix:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
cache: yarn
node-version-file: package.json
- run: yarn --immutable
- name: Check if barrels are up to date
run: yarn ctix && [ -z "$(git status --porcelain)" ]
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
cache: yarn
node-version-file: package.json
- run: yarn --immutable
- uses: SimenB/github-actions-cpu-cores@v2
id: cpu-cores
- run: yarn test:all ---maxWorkers ${{ steps.cpu-cores.outputs.count }}
Expand Down
Loading