Skip to content

Commit

Permalink
Update unit test workflow adobecom#220 (adobecom#211)
Browse files Browse the repository at this point in the history
  • Loading branch information
meganthecoder authored Jun 19, 2024
1 parent 512d0a6 commit 8c04941
Showing 1 changed file with 8 additions and 9 deletions.
17 changes: 8 additions & 9 deletions .github/workflows/run-tests.yaml
Original file line number Diff line number Diff line change
@@ -1,26 +1,25 @@
name: Run tests
name: Unit Tests
on:
push:
branches:
- main
pull_request:
types: [opened, synchronize, reopened, edited]
branches:
- main
types: [opened, synchronize, reopened]
jobs:
build:
run-tests:
name: Running tests
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [18.x]
node-version: [20.x]
steps:
- name: Checkout repository
uses: actions/checkout@v2
uses: actions/checkout@v4
with:
fetch-depth: 2

- name: Set up Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}

Expand All @@ -34,7 +33,7 @@ jobs:
run: xvfb-run -a npm test

- name: Upload coverage to Codecov
uses: codecov/codecov-action@v2
uses: codecov/codecov-action@v4
with:
token: ${{ secrets.CODECOV_TOKEN }}
files: coverage/lcov.info

0 comments on commit 8c04941

Please sign in to comment.