Added name to readme (#1136) #4453
This file contains hidden or 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: 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@v4 | |
| 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 |