-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #4 from mairess/config-ci-github-actions
Config ci GitHub actions
- Loading branch information
Showing
4 changed files
with
73 additions
and
4 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,39 @@ | ||
# This workflow will do a clean installation of node dependencies, cache/restore them, build the source code and run tests across different versions of node | ||
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-nodejs | ||
|
||
name: Node.js CI | ||
|
||
on: | ||
push: | ||
branches: [ "main" ] | ||
pull_request: | ||
branches: [ "main" ] | ||
|
||
jobs: | ||
build: | ||
|
||
runs-on: ubuntu-latest | ||
|
||
strategy: | ||
matrix: | ||
node-version: [16.x] | ||
# See supported Node.js release schedule at https://nodejs.org/en/about/releases/ | ||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: Use Node.js ${{ matrix.node-version }} | ||
uses: actions/setup-node@v3 | ||
with: | ||
node-version: ${{ matrix.node-version }} | ||
cache: 'npm' | ||
- name: Install dependencies and run tests | ||
run: | | ||
cd backend | ||
npm ci | ||
npm run test:coverage | ||
- name: Upload coverage reports to Codecov | ||
uses: codecov/[email protected] | ||
with: | ||
token: ${{ secrets.CODECOV_TOKEN }} | ||
files: backend/coverage/coverage-summary.json | ||
slug: mairess/project-store-manager |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
{ | ||
"name": "sd-0x-store-manager-tests", | ||
"version": "1.0.0", | ||
"description": "Projeto Store Manager - Testes", | ||
"author": "Trybe", | ||
"license": "ISC", | ||
"engines": { | ||
"node": ">=16.0.0", | ||
"npm": ">=7.0.0" | ||
}, | ||
"scripts": { | ||
"cy": "cypress run", | ||
"cy:open": "cypress open --e2e --browser electron", | ||
"lint": "eslint --no-error-on-unmatched-pattern .", | ||
"test": "CY_CLI=true cypress run -r spec -s \"**/*$REQ*\"" | ||
}, | ||
"devDependencies": { | ||
"@stryker-mutator/core": "6.4.2", | ||
"@stryker-mutator/mocha-runner": "6.4.2", | ||
"@testing-library/cypress": "9.0.0", | ||
"cypress": "12.6.0", | ||
"cypress-multi-reporters": "1.6.3", | ||
"eslint-config-trybe-backend": "2.1.0", | ||
"eslint-plugin-cypress": "^2.13.2", | ||
"mochawesome": "7.1.3", | ||
"mochawesome-merge": "4.3.0", | ||
"mochawesome-report-generator": "6.2.0", | ||
"mysql2": "2.3.0" | ||
} | ||
} |
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