Skip to content

Commit

Permalink
feat: Reuse testing workflow (#594)
Browse files Browse the repository at this point in the history
  • Loading branch information
bennycode authored Jul 26, 2023
1 parent 4accded commit 00541e7
Show file tree
Hide file tree
Showing 6 changed files with 9,730 additions and 40 deletions.
7 changes: 7 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,3 +21,10 @@ updates:
commit-message:
prefix: 'chore'
include: 'scope'
ignore:
- dependency-name: 'prettier'
versions:
- '>= 3'
- dependency-name: '@types/node'
versions:
- '>= 19'
39 changes: 5 additions & 34 deletions .github/workflows/run-tests.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: 'Run Tests'
name: CI

on:
push:
Expand All @@ -11,36 +11,7 @@ concurrency:
cancel-in-progress: true

jobs:
test:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest]
node-version: [18.x]
steps:
- name: 'Checkout Git repository with history for all branches and tags'
uses: actions/checkout@v3
with:
fetch-depth: 0

- name: 'Use Node.js ${{ matrix.node-version }}'
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}

- name: 'Install, lint, and test'
run: |
yarn install --frozen-lockfile
yarn 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
files: ./coverage/lcov.info
flags: unittests
verbose: false
yml: ./codecov.yml
test-coverage:
uses: bennycode/actions/.github/workflows/[email protected]
secrets:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
3 changes: 0 additions & 3 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,9 @@
.idea/
.vscode/*
!.vscode/settings.json
.yarnclean
config.json
coverage/
dist/
lerna-debug.log
node_modules/
npm-debug.log*
package-lock.json
yarn-error.log
1 change: 1 addition & 0 deletions codecov.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
comment: false
Loading

0 comments on commit 00541e7

Please sign in to comment.