Bump firebase-tools from 13.14.0 to 13.14.1 in /frontend #1768
Workflow file for this run
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: test | |
on: | |
pull_request: | |
types: [opened, synchronize] | |
branches: | |
- release | |
- master | |
push: | |
branches: | |
- master | |
permissions: | |
contents: read | |
pull-requests: write | |
jobs: | |
changes: | |
runs-on: ubuntu-latest | |
if: github.actor != 'dependabot[bot]' && contains(github.event.commits.*.message, '[skip ci]') == false | |
outputs: | |
frontend: ${{ steps.filter.outputs.backend }} | |
backend: ${{ steps.filter.outputs.backend }} | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: dorny/paths-filter@v3 | |
id: filter | |
with: | |
filters: | | |
frontend: | |
- 'frontend/**' | |
backend: | |
- 'backend/**' | |
frontend-test: | |
name: frontend-test | |
needs: changes | |
runs-on: ubuntu-latest | |
if: ${{ needs.changes.outputs.frontend == 'true' }} | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-node@v4 | |
with: | |
node-version-file: ".tool-versions" | |
- uses: actions/labeler@v5 | |
with: | |
repo-token: "${{ secrets.GITHUB_TOKEN }}" | |
- name: Get npm cache directory | |
id: npm-cache-dir | |
shell: bash | |
run: echo "dir=$(npm config get cache)" >> ${GITHUB_OUTPUT} | |
working-directory: frontend | |
- uses: actions/cache@v4 | |
id: npm-cache | |
with: | |
path: ${{ steps.npm-cache-dir.outputs.dir }} | |
key: ${{ runner.os }}-node-${{ hashFiles('**/frontend/package-lock.json') }} | |
restore-keys: | | |
${{ runner.os }}-node-${{ hashFiles('**/frontend/package-lock.json') }} | |
${{ runner.os }}-node- | |
- name: Install Dependencies | |
working-directory: frontend | |
run: npm ci --include=dev | |
- name: get-npm-version | |
id: package-version | |
uses: martinbeentjes/npm-get-version-action@main | |
with: | |
path: frontend | |
- name: Generate elm-constants | |
working-directory: frontend | |
run: npm run generate:elm-constants | |
env: | |
API_ROOT: ${{ secrets.API_ROOT }} | |
WEB_ROOT: ${{ secrets.WEB_ROOT }} | |
APP_VERSION: ${{ steps.package-version.outputs.current-version}} | |
REPO_BUTTON_URL: ${{ secrets.REPO_BUTTON_URL }} | |
- name: Check format | |
working-directory: frontend | |
run: npm run format:validate | |
- name: Run Tests | |
working-directory: frontend | |
run: npm run test | |
- name: Setup E2E | |
run: npm run test:e2e:init | |
working-directory: frontend | |
- name: Run E2E Tests | |
run: npm run test:e2e | |
working-directory: frontend | |
env: | |
API_ROOT: ${{ secrets.API_ROOT }} | |
WEB_ROOT: ${{ secrets.WEB_ROOT }} | |
FIREBASE_API_KEY: ${{ secrets.FIREBASE_API_KEY }} | |
FIREBASE_AUTH_DOMAIN: ${{ secrets.FIREBASE_AUTH_DOMAIN }} | |
FIREBASE_PROJECT_ID: ${{ secrets.FIREBASE_PROJECT_ID }} | |
FIREBASE_STORAGE_BUCKET: ${{ secrets.FIREBASE_STORAGE_BUCKET }} | |
FIREBASE_APP_ID: ${{ secrets.FIREBASE_APP_ID }} | |
FIREBASE_AUTH_EMULATOR_HOST: "" | |
SENTRY_ENABLE: "0" | |
SENTRY_DSN: ${{ secrets.SENTRY_DSN }} | |
SENTRY_RELEASE: ${{ steps.package-version.outputs.current-version}} | |
SENTRY_AUTH_TOKEN: ${{ secrets.SENTRY_AUTH_TOKEN }} | |
SENTRY_ORG: ${{ secrets.SENTRY_ORG }} | |
SENTRY_PROJECT: ${{ secrets.SENTRY_PROJECT }} | |
MONITOR_ENABLE: "0" | |
USE_HTTPS: "0" | |
backend-test: | |
name: Backend test | |
needs: changes | |
runs-on: ubuntu-latest | |
if: ${{ needs.changes.outputs.backend == 'true' }} | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-go@v5 | |
with: | |
go-version-file: "backend/go.mod" | |
- uses: extractions/setup-just@v2 | |
- name: golangci-lint | |
uses: golangci/golangci-lint-action@v4 | |
with: | |
working-directory: backend | |
args: --issues-exit-code=0 --timeout=2m | |
- name: Run tests | |
run: just test | |
working-directory: frontend | |
analyze: | |
name: Analyze | |
needs: changes | |
runs-on: ubuntu-latest | |
if: ${{ needs.changes.outputs.frontend == 'true' || needs.changes.outputs.backend == 'true' }} | |
permissions: | |
security-events: write | |
strategy: | |
fail-fast: false | |
matrix: | |
language: ["go", "typescript"] | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v4 | |
- uses: actions/setup-go@v5 | |
with: | |
go-version-file: "backend/go.mod" | |
- name: Initialize CodeQL | |
uses: github/codeql-action/init@v3 | |
with: | |
languages: ${{ matrix.language }} | |
- name: Perform CodeQL Analysis | |
uses: github/codeql-action/analyze@v3 |