-
Notifications
You must be signed in to change notification settings - Fork 627
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: reduce renovate updates noise
- Loading branch information
Showing
4 changed files
with
56 additions
and
20 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
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
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 |
---|---|---|
@@ -1,34 +1,61 @@ | ||
name: Lint & Test | ||
name: Test | ||
|
||
on: | ||
workflow_call: | ||
push: | ||
branches: | ||
- renovate/** # branches generated by https://github.com/apps/renovate | ||
pull_request: | ||
branches: | ||
- main | ||
- beta | ||
- '+([0-9])?(.{+([0-9]),x}).x' | ||
workflow_call: | ||
|
||
jobs: | ||
lint-and-test: | ||
runs-on: ${{ matrix.os }} | ||
test_matrix: | ||
strategy: | ||
matrix: | ||
node: [16.x, 18.x, 20.x] | ||
os: [ubuntu-latest, windows-latest, macos-latest] | ||
node: [16, 18, 20] | ||
|
||
runs-on: ${{ matrix.os }} | ||
timeout-minutes: 5 | ||
|
||
steps: | ||
- name: Checkout project | ||
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4 | ||
|
||
- name: Use Node.js ${{ matrix.node }} | ||
uses: actions/setup-node@8f152de45cc393bb48ce5d89d36b731f54556e65 # v4 | ||
with: | ||
node-version: ${{ matrix.node }} | ||
cache: 'npm' | ||
|
||
- name: Install packages | ||
run: npm ci | ||
- name: Build project | ||
run: npm run build | ||
|
||
- name: Audit npm signatures | ||
run: npm audit signatures | ||
|
||
- name: Check codestyle compliance | ||
run: npm run lint | ||
|
||
- name: Build project | ||
run: npm run build | ||
|
||
- name: Run tests | ||
run: npm run test | ||
|
||
# separate job to set as required status check in branch protection | ||
required_check: | ||
runs-on: ubuntu-latest | ||
needs: | ||
- test_matrix | ||
if: always() | ||
steps: | ||
- name: All required jobs and matrix versions passed | ||
if: ${{ !(contains(needs.*.result, 'failure')) }} | ||
run: exit 0 | ||
- name: Some required jobs or matrix versions failed | ||
if: ${{ contains(needs.*.result, 'failure') }} | ||
run: exit 1 |
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