Merge pull request #3012 from numbersprotocol/feature-v230822-use-app… #466
Workflow file for this run
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: test | |
on: [push, pull_request] | |
jobs: | |
lint: | |
runs-on: ubuntu-latest | |
timeout-minutes: 10 | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Use Node.js | |
uses: actions/setup-node@v2 | |
with: | |
node-version: '16.15.0' | |
- name: Install Ionic CLI | |
run: npm install -g @ionic/cli | |
- name: Generate .npmrc for pintura package | |
env: | |
NUMBERS_PQINA_NPM_KEY: ${{ secrets.NUMBERS_PQINA_NPM_KEY }} | |
run: npm run preconfig.npmrc | |
- name: Install dependencies | |
run: npm install | |
- name: Lint | |
run: npm run lint | |
test: | |
runs-on: ubuntu-latest | |
timeout-minutes: 10 | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Use Node.js | |
uses: actions/setup-node@v2 | |
with: | |
node-version: '16.15.0' | |
- name: Install Ionic CLI | |
run: npm install -g @ionic/cli | |
- name: Generate .npmrc for pintura package | |
env: | |
NUMBERS_PQINA_NPM_KEY: ${{ secrets.NUMBERS_PQINA_NPM_KEY }} | |
run: npm run preconfig.npmrc | |
- name: Install dependencies | |
run: npm install | |
- name: Test | |
run: npm run test.ci | |
- name: Upload coverage reports | |
uses: codacy/codacy-coverage-reporter-action@master | |
if: github.actor != 'dependabot[bot]' | |
with: | |
project-token: ${{ secrets.CODACY_PROJECT_TOKEN }} | |
coverage-reports: ./coverage/cobertura-coverage.xml |