Various fixes #21
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: Tests | |
on: | |
pull_request: | |
branches: [main] | |
push: | |
branches: [main] | |
jobs: | |
test: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Install pnpm | |
uses: pnpm/action-setup@v4 | |
with: | |
version: 10 | |
- name: Setup Node.js | |
uses: actions/setup-node@v4 | |
with: | |
node-version: "20" | |
cache: "pnpm" | |
- name: Authenticate NPM registry | |
run: echo -e "//npm.pkg.github.com/:_authToken=${{ secrets.NPM_TOKEN }}\n@capawesome-team:registry=https://npm.pkg.github.com/" > ~/.npmrc | |
- name: Add Firebase credentials | |
run: echo '${{ secrets.FIREBASE_CREDS }}' > ./src/firebase.json | |
- name: Install dependencies | |
run: pnpm install | |
- name: Type check | |
run: pnpm run typecheck | |
- name: Lint | |
run: pnpm run lint | |
- name: Run tests | |
run: pnpm run test | |
- name: Generate coverage | |
run: pnpm run test:coverage | |
- name: Upload coverage reports to Codecov | |
uses: codecov/codecov-action@v5 | |
with: | |
token: ${{ secrets.CODECOV_TOKEN }} | |
slug: ZaparooProject/zaparoo-app |