generated from bennycode/ts-node-starter
-
-
Notifications
You must be signed in to change notification settings - Fork 90
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
8 additions
and
31 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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 }} |