Skip to content

Add FAQ to the subscription site #504

Add FAQ to the subscription site

Add FAQ to the subscription site #504

Workflow file for this run

name: NodeJS
on:
push:
branches:
- main
pull_request:
branches:
- '*'
jobs:
test-and-deploy:
if: ${{ github.event_name == 'pull_request' && github.event.pull_request.head.repo.full_name == github.repository || github.ref == 'refs/heads/main' }}
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
lfs: 'true'
- uses: actions/setup-node@v4
with:
node-version: 'lts/*'
cache: 'yarn'
- name: Install dependencies
if: ${{ github.ref == 'refs/heads/main' || github.actor == 'dependabot[bot]' }}
run: yarn install
- name: Install dependencies and lint
if: ${{ github.ref != 'refs/heads/main' && github.actor != 'dependabot[bot]' }}
run: |
yarn install --check-cache
yarn dedupe --check
yarn lint
- name: Unit Tests
run: yarn coverage
- name: Run E2E Tests
run: yarn e2e
- name: Build
run: yarn build
- name: Deploy
uses: FirebaseExtended/action-hosting-deploy@v0
if: github.actor != 'dependabot[bot]'
with:
repoToken: ${{ secrets.GITHUB_TOKEN }}
firebaseServiceAccount: ${{ secrets.FIREBASE_SERVICE_ACCOUNT_STAND_WITH_UKRAINE_BC_APP }}
# if the event is pull request - create preview channel with pr number otherwise use production channel
channelId: ${{ github.event_name == 'pull_request' && github.event.pull_request.number || 'live' }}
projectId: stand-with-ukraine-bc-app
- uses: actions/upload-artifact@v4
if: always()
with:
name: playwright-report
path: playwright-report/
retention-days: 30
- name: Merge coverage
run: yarn merge-coverage
- name: Upload coverage to Coveralls
uses: coverallsapp/github-action@v2
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
file: coverage/lcov.info