j-mendez/dfirestore

View on GitHub
.github/workflows/test.yml

Summary

Maintainability
Test Coverage
name: test
on:
  push:
    branches: [main]
jobs:
  build:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@main
      - uses: denoland/setup-deno@v1
        with:
          deno-version: "1.20.6"
      - name: Run test
        run:
          FIREBASE_PROJECT_ID=$FIREBASE_PROJECT_ID FIREBASE_TOKEN=$FIREBASE_TOKEN FIREBASE_PROJECT_KEY=$FIREBASE_PROJECT_KEY
          FIREBASE_AUTH_EMAIL=$FIREBASE_AUTH_EMAIL FIREBASE_AUTH_PASSWORD=$FIREBASE_AUTH_PASSWORD FIREBASE_REFRESH_RATE=$FIREBASE_REFRESH_RATE
          deno test --unstable --allow-run --allow-net=firestore.googleapis.com,identitytoolkit.googleapis.com --allow-env --allow-read --allow-write -A
        env:
          FIREBASE_PROJECT_ID: ${{ secrets.FIREBASE_PROJECT_ID }}
          FIREBASE_TOKEN: ${{ secrets.FIREBASE_TOKEN }}
          FIREBASE_AUTH_EMAIL: ${{ secrets.FIREBASE_AUTH_EMAIL }}
          FIREBASE_AUTH_PASSWORD: ${{ secrets.FIREBASE_AUTH_PASSWORD }}
          FIREBASE_PROJECT_KEY: ${{ secrets.FIREBASE_PROJECT_KEY }}
          FIREBASE_REFRESH_RATE: ${{ secrets.FIREBASE_REFRESH_RATE }}