added node fetch #327
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
name: Build & Test | |
on: | |
push: | |
branches: [main] | |
pull_request: | |
branches: [main] | |
workflow_dispatch: | |
jobs: | |
test: | |
runs-on: ubuntu-latest | |
env: | |
EMAIL_PORT: 465 | |
JWT_SECRET: "Hello World" | |
AUTH_TOKEN_EXPIRY: "20d" | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/setup-node@v3 | |
with: | |
node-version: "16" | |
- name: Build project | |
run: | | |
npm install | |
npm run lint:only | |
npm run build | |
- name: Run tests with code coverage | |
uses: paambaati/[email protected] | |
env: | |
CC_TEST_REPORTER_ID: 0e1282aa3a3381f8b403add1674c981483766b199d9ee55806bef31596851c7a | |
with: | |
coverageCommand: npm run ci | |
coverageLocations: | | |
${{github.workspace}}/coverage/lcov.info:lcov |