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