Skip to content

Commit

Permalink
Merge pull request #63 from matheuspiment/development
Browse files Browse the repository at this point in the history
sync/master
  • Loading branch information
matheuspiment authored May 18, 2023
2 parents 9f486e3 + 600b6e1 commit a431191
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 2 deletions.
24 changes: 22 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,22 +5,42 @@ on: push
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
node: [16, 18]
steps:
- uses: actions/checkout@v3
with:
# Disabling shallow clone is recommended for improving relevancy of reporting
fetch-depth: 0
- uses: actions/setup-node@v3
with:
node-version: 16
node-version: ${{ matrix.node }}
cache: 'yarn'
- name: Install dependencies
run: yarn install
- name: Build
run: |
yarn build
coverage:
needs: build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
# Disabling shallow clone is recommended for improving relevancy of reporting
fetch-depth: 0
- uses: actions/setup-node@v3
with:
node-version: 16
cache: 'yarn'
- name: Install dependencies
run: yarn install
- name: Coverage
run: |
yarn cover
yarn check-coverage
yarn build
- name: Report coverage to Codecov
uses: codecov/codecov-action@v3
with:
Expand Down
3 changes: 3 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,9 @@
"rimraf": "^2.6.2",
"semantic-release": "^19.0.3"
},
"engines": {
"node": ">=16 <=18"
},
"config": {
"commitizen": {
"path": "node_modules/cz-conventional-changelog"
Expand Down

0 comments on commit a431191

Please sign in to comment.