From d59ec91230ae96df85067519230dd6b324a03060 Mon Sep 17 00:00:00 2001 From: Jan Macku Date: Thu, 14 Dec 2023 14:47:52 +0100 Subject: [PATCH] ci: test only Node.js 20 --- .github/workflows/check-dist.yml | 5 +---- .github/workflows/codeql-analysis.yml | 2 -- .github/workflows/issue-labeler.yml | 2 -- .github/workflows/lint.yml | 5 +---- .github/workflows/publish-release.yml | 2 -- .github/workflows/release-drafter.yml | 2 -- .github/workflows/unit-tests.yml | 16 ++++------------ 7 files changed, 6 insertions(+), 28 deletions(-) diff --git a/.github/workflows/check-dist.yml b/.github/workflows/check-dist.yml index 1e89b6c..18af6bb 100644 --- a/.github/workflows/check-dist.yml +++ b/.github/workflows/check-dist.yml @@ -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 @@ -57,5 +56,3 @@ jobs: with: name: dist path: dist/ - -... diff --git a/.github/workflows/codeql-analysis.yml b/.github/workflows/codeql-analysis.yml index 0112702..faa60c2 100644 --- a/.github/workflows/codeql-analysis.yml +++ b/.github/workflows/codeql-analysis.yml @@ -42,5 +42,3 @@ jobs: - name: Perform CodeQL Analysis uses: github/codeql-action/analyze@v2 - -... diff --git a/.github/workflows/issue-labeler.yml b/.github/workflows/issue-labeler.yml index fea1066..b6ea793 100644 --- a/.github/workflows/issue-labeler.yml +++ b/.github/workflows/issue-labeler.yml @@ -33,5 +33,3 @@ jobs: with: issue-form: ${{ steps.issue-parser.outputs.jsonString }} token: ${{ secrets.GITHUB_TOKEN }} - -... diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index 0bec058..2b2a57b 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -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 @@ -37,5 +36,3 @@ jobs: - name: ESLint run: yarn run lint - -... diff --git a/.github/workflows/publish-release.yml b/.github/workflows/publish-release.yml index a81721d..b6bccb8 100644 --- a/.github/workflows/publish-release.yml +++ b/.github/workflows/publish-release.yml @@ -25,5 +25,3 @@ jobs: with: publish_latest_tag: false token: ${{ secrets.GITHUB_TOKEN }} - -... diff --git a/.github/workflows/release-drafter.yml b/.github/workflows/release-drafter.yml index e5e4ad0..a97016d 100644 --- a/.github/workflows/release-drafter.yml +++ b/.github/workflows/release-drafter.yml @@ -21,5 +21,3 @@ jobs: - uses: release-drafter/release-drafter@v5 env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - -... diff --git a/.github/workflows/unit-tests.yml b/.github/workflows/unit-tests.yml index 356983d..fd41cf9 100644 --- a/.github/workflows/unit-tests.yml +++ b/.github/workflows/unit-tests.yml @@ -1,6 +1,6 @@ --- -name: Unit tests +name: Tests on: push: @@ -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 @@ -44,7 +39,4 @@ jobs: run: yarn test - name: Codecov - if: ${{ matrix.node-version == '20.x' }} uses: codecov/codecov-action@v3 - -...