Skip to content

Commit

Permalink
test: Use shared testing CI (#682)
Browse files Browse the repository at this point in the history
  • Loading branch information
bennycode authored May 8, 2024
1 parent bcb73a6 commit caba268
Showing 1 changed file with 8 additions and 31 deletions.
39 changes: 8 additions & 31 deletions .github/workflows/run-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,35 +8,12 @@ on:
branches:
- main

jobs:
test:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [18.x]
steps:
- name: 'Checkout repository'
uses: actions/checkout@v4

- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

- name: 'Install, lint, and test'
run: |
npm install
npm run lint
npm test
if: |
contains(github.event.commits[0].message, '[skip ci]') == false &&
contains(github.event.commits[0].message, '[ci skip]') == false
- name: 'Upload coverage reports to Codecov'
uses: codecov/[email protected]
with:
fail_ci_if_error: false
file: ./coverage/lcov.info
flags: unittests
token: ${{ secrets.CODECOV_TOKEN }}
yml: ./codecov.yml
jobs:
test-coverage:
uses: bennycode/actions/.github/workflows/test-coverage.yml@main
secrets:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}

0 comments on commit caba268

Please sign in to comment.