-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Rewrite CI from Travis to GitHub Actions (#31)
* Rewrite ci/cd from travis to github actions * delete mongo version 3.4 * add vazco open standards * add custom name with Node.js and MongoDB versions * stringify matrix number like 6.0
- Loading branch information
1 parent
61f69f3
commit c1f0cb8
Showing
4 changed files
with
43 additions
and
34 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 |
---|---|---|
@@ -0,0 +1,40 @@ | ||
name: CI | ||
on: | ||
pull_request: | ||
push: | ||
branches: | ||
- master | ||
jobs: | ||
CI: | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
node-version: [16.x, 18.x, 20.x] | ||
mongodb-version: [3.6, '4.0', 4.2, 4.4, '6.0'] | ||
name: Node.js ${{ matrix.node-version }}, MongoDB ${{ matrix.mongodb-version }} | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
- name: Use Node.js ${{ matrix.node-version }} | ||
uses: actions/setup-node@v3 | ||
with: | ||
node-version: ${{ matrix.node-version }} | ||
- name: Check dependency duplications | ||
uses: vazco/open-standards/actions/npm-dependency-duplications/@master | ||
- name: Check dependency vulnerabilities | ||
uses: vazco/open-standards/actions/npm-dependency-vulnerabilities/@master | ||
- name: Start MongoDB | ||
uses: supercharge/[email protected] | ||
with: | ||
mongodb-version: ${{ matrix.mongodb-version }} | ||
- name: Install dependencies | ||
run: npm i -g npm@8 --no-audit && npm ci --no-audit | ||
- name: Lint | ||
run: npm run lint | ||
- name: Test | ||
run: npm run coverage -- --no-cache --runInBand | ||
- name: Report coverage | ||
uses: codecov/[email protected] | ||
with: | ||
fail_ci_if_error: true | ||
|
This file was deleted.
Oops, something went wrong.
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
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