-
Notifications
You must be signed in to change notification settings - Fork 980
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
1c0e073
commit b436d76
Showing
2 changed files
with
61 additions
and
43 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
name: ${{ inputs.target }} / node 20 latest | ||
|
||
on: | ||
workflow_call: | ||
inputs: | ||
target: | ||
description: The target to run on. | ||
type: string | ||
required: true | ||
skip: | ||
description: Whether to skip all jobs. | ||
type: boolean | ||
required: false | ||
default: false | ||
|
||
jobs: | ||
build-lint-test: | ||
name: ${{ inputs.target }} / node 20 latest | ||
runs-on: ${{ inputs.target }} | ||
if: ${{ !inputs.skip }} | ||
|
||
steps: | ||
- name: Remove the tsc problem matcher if not ubuntu-latest | ||
if: inputs.target != 'ubuntu-latest' | ||
run: echo "echo "::remove-matcher owner=tsc::"" | ||
|
||
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4 | ||
- name: Set up job | ||
uses: ./.github/actions/set-up-job | ||
|
||
- name: π Lint | ||
run: yarn lint | ||
|
||
# TODO(jgmw): Re-enable when it doesn't hang | ||
# - name: π₯‘ Check packaging and attw | ||
# run: yarn check:package | ||
|
||
- name: π‘ Test Types | ||
run: yarn test:types | ||
|
||
- name: Get number of CPU cores | ||
if: always() | ||
id: cpu-cores | ||
uses: SimenB/github-actions-cpu-cores@97ba232459a8e02ff6121db9362b09661c875ab8 # v2 | ||
|
||
- name: π§ͺ Test | ||
run: yarn test-ci --minWorkers=1 --maxWorkers=${{ steps.cpu-cores.outputs.count }} | ||
|
||
skipped: | ||
name: Skip / ${{ inputs.target }} / node 20 latest | ||
runs-on: ubuntu-latest | ||
if: ${{ inputs.skip }} | ||
steps: | ||
- name: Skip | ||
run: echo "Skipping as requested from caller" |
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