From 8c04941a60278e4c9ccc71e2960fa7eac132bceb Mon Sep 17 00:00:00 2001 From: Megan Thomas Date: Wed, 19 Jun 2024 15:09:12 -0700 Subject: [PATCH] Update unit test workflow #220 (#211) --- .github/workflows/run-tests.yaml | 17 ++++++++--------- 1 file changed, 8 insertions(+), 9 deletions(-) diff --git a/.github/workflows/run-tests.yaml b/.github/workflows/run-tests.yaml index fc5ce8e..db78c6d 100644 --- a/.github/workflows/run-tests.yaml +++ b/.github/workflows/run-tests.yaml @@ -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 }} @@ -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