Skip to content

Commit

Permalink
fix: Broken CI actions
Browse files Browse the repository at this point in the history
Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
  • Loading branch information
susnux committed Oct 18, 2023
1 parent b16632c commit 5580d9d
Show file tree
Hide file tree
Showing 3 changed files with 33 additions and 95 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/cypress.yml
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ jobs:
CYPRESS_RECORD_KEY: ${{ secrets.CYPRESS_RECORD_KEY }}

- name: Collect coverage
uses: codecov/codecov-action@v4
uses: codecov/codecov-action@v3.1.4
with:
files: ./coverage/lcov.info

Expand Down Expand Up @@ -121,7 +121,7 @@ jobs:
CYPRESS_RECORD_KEY: ${{ secrets.CYPRESS_RECORD_KEY }}

- name: Collect coverage
uses: codecov/codecov-action@v4
uses: codecov/codecov-action@eaaf4bedf32dbdc6b720b63067d99c4d77d6047d # v3.1.4
with:
files: ./coverage/lcov.info

Expand Down
53 changes: 31 additions & 22 deletions .github/workflows/node-test.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Node
name: Node tests

on:
pull_request:
Expand All @@ -8,45 +8,54 @@ on:
- master
- stable*

permissions:
contents: read

concurrency:
group: node-tests-${{ github.head_ref || github.run_id }}
cancel-in-progress: true

jobs:
test:
runs-on: ubuntu-latest
permissions:
checks: write
pull-requests: write
strategy:
matrix:
node-version: [ 16, 18 ]
include:
- node-version: 16
coverage: coverage

name: test

steps:
- name: Checkout
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11
uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # v3.6.0

- name: Set up node ${{ matrix.node-version }}
uses: actions/setup-node@v3
- name: Read package.json node and npm engines version
uses: skjnldsv/read-package-engines-version-actions@8205673bab74a63eb9b8093402fd9e0e018663a1 # v2.2
id: versions
with:
node-version: ${{ matrix.node-version }}
fallbackNode: '^20'
fallbackNpm: '^9'

- name: Install dependencies
run: npm ci
- name: Set up node ${{ steps.versions.outputs.nodeVersion }}
uses: actions/setup-node@5e21ff4d9bc1a8cf6de233a3057d20ec6b3fb69d # v3.8.1
with:
node-version: ${{ steps.versions.outputs.nodeVersion }}

- name: Set up npm ${{ steps.versions.outputs.npmVersion }}
run: npm i -g npm@"${{ steps.versions.outputs.npmVersion }}"

- name: Install dependencies & build
env:
CYPRESS_INSTALL_BINARY: 0
run: |
npm ci
npm run build --if-present
- name: Test
run: npm run test --if-present

- name: Test and process coverage
if: matrix.coverage
run: npm run test:coverage
run: npm run test:coverage --if-present

- name: Collect coverage
uses: codecov/codecov-action@v4
uses: codecov/codecov-action@eaaf4bedf32dbdc6b720b63067d99c4d77d6047d # v3.1.4
with:
files: ./coverage/lcov.info


summary:
runs-on: ubuntu-latest
needs: test
Expand Down
71 changes: 0 additions & 71 deletions .github/workflows/node.yml

This file was deleted.

0 comments on commit 5580d9d

Please sign in to comment.