Make Parameters for Firestore Hooks Positional (#73) #215
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: "Check" | |
on: | |
pull_request: | |
push: | |
branches: | |
- main | |
- dev | |
jobs: | |
test: | |
runs-on: ubuntu-22.04 | |
steps: | |
- name: "Checkout repository" | |
uses: actions/checkout@v4 | |
- name: "Create Gcloud Auth Key" | |
env: | |
FIREACT_GCLOUD_KEY: ${{ secrets.FIREACT_GCLOUD_SECRET_KEY_CONTENT }} | |
run: echo $FIREACT_GCLOUD_KEY > $HOME/gcloud.json | |
- name: "Install dependencies" | |
run: | | |
npm i | |
cd functions && npm i && cd .. | |
- name: "Download Firebase Emulators" | |
run: npm run firebase:emulators:download | |
- name: "Run Firebase Emulators" | |
env: | |
FIREBASE_TOKEN: ${{ secrets.FIREBASE_SECRET_TOKEN }} | |
run: | | |
npm run firebase:emulators:run & | |
sleep 20 | |
- name: "Test" | |
uses: nick-fields/retry@v2 | |
with: | |
timeout_minutes: 3 | |
max_attempts: 3 | |
command: npm run test | |
- name: "Analyze Coverage" | |
uses: nick-fields/retry@v2 | |
with: | |
timeout_minutes: 3 | |
max_attempts: 3 | |
command: npm run test:coverage | |
- name: "Upload Coverage" | |
uses: codecov/codecov-action@v3 | |
env: | |
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} | |
lint: | |
runs-on: ubuntu-22.04 | |
steps: | |
- name: "Checkout repository" | |
uses: actions/checkout@v4 | |
- name: "Install dependencies" | |
run: npm i | |
- name: "Check Linting" | |
run: npm run lint:check | |
formatter: | |
runs-on: ubuntu-22.04 | |
steps: | |
- name: "Checkout repository" | |
uses: actions/checkout@v4 | |
- name: "Install dependencies" | |
run: npm i | |
- name: "Check Formatting" | |
run: npm run formatter:check |