Merge pull request #3332 from numbersprotocol/feature-add-google-login #824
This file contains hidden or 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 | |
| jobs: | |
| lint: | |
| runs-on: ubuntu-latest | |
| timeout-minutes: 10 | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Use Node.js | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: '20.11.1' | |
| - 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 --legacy-peer-deps | |
| - name: Lint | |
| run: npm run lint | |
| test: | |
| runs-on: ubuntu-latest | |
| timeout-minutes: 10 | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Use Node.js | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: '20.11.1' | |
| - 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 --legacy-peer-deps | |
| - 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 |