Skip to content

Commit

Permalink
ci: test only Node.js 20
Browse files Browse the repository at this point in the history
  • Loading branch information
jamacku committed Dec 14, 2023
1 parent 3575094 commit d59ec91
Show file tree
Hide file tree
Showing 7 changed files with 6 additions and 28 deletions.
5 changes: 1 addition & 4 deletions .github/workflows/check-dist.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,7 @@ jobs:
steps:
- uses: actions/checkout@v4

- name: Use Node.js 20
uses: actions/setup-node@v3
- uses: actions/setup-node@v3
with:
node-version: 20
cache: yarn
Expand Down Expand Up @@ -57,5 +56,3 @@ jobs:
with:
name: dist
path: dist/

...
2 changes: 0 additions & 2 deletions .github/workflows/codeql-analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,5 +42,3 @@ jobs:

- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v2

...
2 changes: 0 additions & 2 deletions .github/workflows/issue-labeler.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,5 +33,3 @@ jobs:
with:
issue-form: ${{ steps.issue-parser.outputs.jsonString }}
token: ${{ secrets.GITHUB_TOKEN }}

...
5 changes: 1 addition & 4 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,7 @@ jobs:
steps:
- uses: actions/checkout@v4

- name: Use Node.js 20.x
uses: actions/setup-node@v3
- uses: actions/setup-node@v3
with:
node-version: 20
cache: yarn
Expand All @@ -37,5 +36,3 @@ jobs:

- name: ESLint
run: yarn run lint

...
2 changes: 0 additions & 2 deletions .github/workflows/publish-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,5 +25,3 @@ jobs:
with:
publish_latest_tag: false
token: ${{ secrets.GITHUB_TOKEN }}

...
2 changes: 0 additions & 2 deletions .github/workflows/release-drafter.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,5 +21,3 @@ jobs:
- uses: release-drafter/release-drafter@v5
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

...
16 changes: 4 additions & 12 deletions .github/workflows/unit-tests.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---

name: Unit tests
name: Tests

on:
push:
Expand All @@ -14,20 +14,15 @@ permissions:

jobs:
test:
name: Unit Tests - Node.js
name: Node.js
runs-on: ubuntu-latest

strategy:
matrix:
node-version: [ 18.x, 20.x ]

steps:
- uses: actions/checkout@v4

- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
- uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
node-version: 20
cache: yarn
cache-dependency-path: yarn.lock

Expand All @@ -44,7 +39,4 @@ jobs:
run: yarn test

- name: Codecov
if: ${{ matrix.node-version == '20.x' }}
uses: codecov/codecov-action@v3

...

0 comments on commit d59ec91

Please sign in to comment.