Merge pull request #42 from cnumr/feat/changeReadmeAndVersion #18
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 | |
on: | |
workflow_dispatch: | |
push: | |
branches: | |
- main | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
fetch-depth: 0 | |
- uses: actions/setup-node@v3 | |
- name: Run Lint | |
run: | | |
npm ci | |
npm run lint | |
- name: Run Test | |
run: | | |
npm run test | |
- name: Lint and Test Aggregator | |
run: | | |
cd aggregator | |
npm ci | |
npm run lint | |
npm run test | |
cd .. | |
- name: Run Cypress Integration test via NPX | |
run: | | |
npx cypress run --browser=chrome | |
npx cypress run --browser=chromium | |
- name: Run Cypress Integration test via Cypress Github Actions | |
uses: cypress-io/github-action@v5 | |
with: | |
browser: chromium | |
headless: true | |
config-file: cypress.config.js | |
env: | |
ECOINDEX_VERBOSE: true | |
- uses: JS-DevTools/npm-publish@v1 | |
with: | |
access: public | |
token: ${{ secrets.NPM_SECRET }} | |
- uses: JS-DevTools/npm-publish@v1 | |
with: | |
access: publicgit s | |
package: aggregator/package.json | |
token: ${{ secrets.NPM_SECRET }} |