Add a draft for the Google Voice banning #413
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: CI | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/setup-node@v3 | |
with: | |
node-version-file: ".tool-versions" | |
- name: Get the Yarn cache path | |
id: yarn-cache-path | |
run: echo "::set-output name=path::$(yarn config get cacheFolder)" | |
- uses: actions/cache@v3 | |
with: | |
path: ${{ steps.yarn-cache-path.outputs.path }} | |
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }} | |
restore-keys: | | |
${{ runner.os }}-yarn- | |
- name: Install packages | |
run: yarn install --immutable | |
- name: Check the formatting | |
run: yarn run format:check | |
- name: Run linters | |
run: yarn run lint | |
- name: Build the site | |
run: yarn run build | |
- name: Install Playwright browsers | |
run: yarn playwright install --with-deps | |
- name: Run Playwright tests | |
run: yarn playwright test | |
- uses: actions/upload-artifact@v3 | |
if: always() | |
with: | |
name: playwright-report | |
path: playwright-report/ | |
retention-days: 30 | |
- name: Sync the Algolia index | |
run: echo "To re-implement later.." | |
if: github.ref == 'refs/heads/main' && success() | |
env: | |
ALGOLIA_ADMIN_KEY: ${{ secrets.ALGOLIA_ADMIN_KEY }} | |
AGLOLIA_INDEX_NAME: ${{ secrets.ALGOLIA_INDEX_NAME }} | |
CI: true |