Bump vite from 3.2.5 to 3.2.7 #878
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 | |
# Controls when the workflow will run | |
on: | |
# Triggers the workflow on push or pull request events but only for the main branch | |
push: | |
branches: [main, 'renovate/**'] | |
pull_request: | |
branches: [main] | |
# Allows you to run this workflow manually from the Actions tab | |
workflow_dispatch: | |
# Automatically cancel in-progress actions on the same branch | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.event_name == 'pull_request_target' && github.head_ref || github.ref }} | |
cancel-in-progress: true | |
# Authentication for GitHub npm registry | |
env: | |
NODE_AUTH_TOKEN: ${{ secrets.GH_PACKAGES_PAT }} | |
PUBLIC_SENTRY_ENVIRONMENT: 'github_ci' | |
SENTRY_AUTH_TOKEN: ${{ secrets.SENTRY_AUTH_TOKEN }} | |
# To use Turborepo Remote Caching, set the following environment variables for the job. | |
TURBO_TOKEN: ${{ secrets.TURBO_TOKEN }} | |
TURBO_TEAM: ${{ secrets.TURBO_TEAM }} | |
# A workflow run is made up of one or more jobs that can run sequentially or in parallel | |
jobs: | |
lighthouse: | |
runs-on: ubuntu-latest | |
timeout-minutes: 10 | |
# Prevents duplicate runs on Renovate pull-requests (otherwise it runs for the push and the PR) | |
if: ${{ !github.event.pull_request.draft && !startsWith(github.head_ref, 'renovate/') }} | |
# Steps represent a sequence of tasks that will be executed as part of the job | |
steps: | |
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it | |
- uses: actions/checkout@v3 | |
# ensure that git history is available (pull request checks don't work otherwise) | |
with: | |
ref: ${{ github.event.pull_request.head.sha }} | |
fetch-depth: 20 | |
- if: ${{github.base_ref}} | |
run: git fetch --depth=1 origin +refs/heads/${{github.base_ref}}:refs/remotes/origin/${{github.base_ref}} | |
- uses: ./.github/actions/pnpm-node-setup | |
- name: pnpm build | |
run: | | |
pnpm turbo build | |
- name: run Lighthouse CI | |
run: | | |
pnpm install -g @lhci/cli@0.9.x | |
lhci autorun | |
env: | |
LHCI_GITHUB_APP_TOKEN: ${{ secrets.LHCI_GITHUB_APP_TOKEN }} | |
lint: | |
runs-on: ubuntu-latest | |
timeout-minutes: 10 | |
if: ${{ !github.event.pull_request.draft && !startsWith(github.head_ref, 'renovate/') }} | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: ./.github/actions/pnpm-node-setup | |
- name: build | |
run: | | |
pnpm turbo build | |
- run: pnpm turbo check | |
- run: pnpm turbo lint | |
test: | |
runs-on: ubuntu-latest | |
timeout-minutes: 10 | |
if: ${{ !github.event.pull_request.draft && !startsWith(github.head_ref, 'renovate/') }} | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: ./.github/actions/pnpm-node-setup | |
- run: pnpm playwright install | |
- name: Run Playwright tests | |
run: pnpm turbo test | |
- uses: actions/upload-artifact@v3 | |
if: always() | |
with: | |
name: playwright-report | |
path: playwright-report/ | |
retention-days: 15 |