Skip to content

New Website: Compress images to under 1 MB #2315

New Website: Compress images to under 1 MB

New Website: Compress images to under 1 MB #2315

Workflow file for this run

name: Build
on:
push:
branches:
- main
pull_request:
branches: [main, staging]
jobs:
check:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version-file: .node-version
- name: Use Yarn Cache
uses: actions/cache@v4
with:
path: ~/.cache/yarn
key: yarn-${{ hashFiles(format('{0}{1}', github.workspace, '/yarn.lock')) }}
restore-keys: yarn-
- name: Install
run: yarn
- name: Lint
run: yarn lint
- name: Type Check
run: yarn type-check
- name: Format
run: yarn format:check
- name: Configure environment for prod
run: echo "ENV=prod" >> $GITHUB_ENV
if: startsWith(github.base_ref, 'main')
- name: Configure environment for staging
run: echo "ENV=staging" >> $GITHUB_ENV
if: startsWith(github.base_ref, 'staging')
- name: Test
env:
FIREBASE_PRIVATE_KEY: ${{ secrets.FIREBASE_PRIVATE_KEY }}
FIREBASE_PRIVATE_KEY_ID: ${{ secrets.FIREBASE_PRIVATE_KEY_ID }}
FIREBASE_DEV_PRIVATE_KEY: ${{ secrets.FIREBASE_DEV_PRIVATE_KEY}}
FIREBASE_DEV_PRIVATE_KEY_ID: ${{ secrets.FIREBASE_DEV_PRIVATE_KEY_ID }}
ENV: ${{ env.ENV }}
run: yarn test
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version-file: .node-version
- name: Use Yarn Cache
uses: actions/cache@v1
with:
path: ~/.cache/yarn
key: yarn-${{ hashFiles(format('{0}{1}', github.workspace, '/yarn.lock')) }}
restore-keys: yarn-
- name: Install
run: yarn
- name: Build
run: yarn workspaces run build