Skip to content

Merge pull request #2971 from numbersprotocol/feature-v230725-showing… #436

Merge pull request #2971 from numbersprotocol/feature-v230725-showing…

Merge pull request #2971 from numbersprotocol/feature-v230725-showing… #436

Workflow file for this run

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