Migrate to unified testing workflow
This commit is contained in:
parent
745dfb614a
commit
20dbbe816d
1 changed files with 5 additions and 31 deletions
36
.github/workflows/test.yml
vendored
36
.github/workflows/test.yml
vendored
|
|
@ -11,34 +11,8 @@ permissions:
|
||||||
contents: read
|
contents: read
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
lint-js:
|
run-tests:
|
||||||
runs-on: ubuntu-latest
|
uses: MithrilJS/infra/.github/workflows/run-tests.yml@main
|
||||||
steps:
|
with:
|
||||||
- uses: actions/checkout@v4
|
all-platforms: true
|
||||||
with:
|
all-versions: true
|
||||||
fetch-depth: 1
|
|
||||||
- uses: actions/setup-node@v4
|
|
||||||
with:
|
|
||||||
node-version: 20
|
|
||||||
- run: npm ci
|
|
||||||
- run: npm run lint
|
|
||||||
- run: npm run build
|
|
||||||
|
|
||||||
test-js:
|
|
||||||
needs: lint-js
|
|
||||||
strategy:
|
|
||||||
matrix:
|
|
||||||
# See supported Node.js release schedule at https://nodejs.org/en/about/releases/
|
|
||||||
node-version:
|
|
||||||
- 18
|
|
||||||
- 20
|
|
||||||
- 22
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
steps:
|
|
||||||
- uses: actions/checkout@v4
|
|
||||||
with:
|
|
||||||
fetch-depth: 1
|
|
||||||
- uses: actions/setup-node@v4
|
|
||||||
with:
|
|
||||||
node-version: ${{ matrix.node-version }}
|
|
||||||
- run: npm ci-test
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue