Skip to content

Add sport as match filter #108

Add sport as match filter

Add sport as match filter #108

Workflow file for this run

name: CI
on:
push:
branches: [ main, develop ]
pull_request:
jobs:
integration:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/cache@v4
id: cache
with:
path: ~/.npm
key: node-deps-${{ hashFiles('**/package-lock.json') }}
- name: Install dependencies
run: npm ci
- name: Linter
run: npm run lint -- --no-fix
- name: Build
run: npm run build
cypress-run:
needs: integration
runs-on: ubuntu-22.04
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Install dependencies
uses: cypress-io/github-action@v6
with:
# just perform install
runTests: false
- name: Start server in the background
run: npm run supabase:start -- -x studio,imgproxy,inbucket,pgadmin-schema-diff,migra,postgres-meta,vector,pgbouncer,logflare
- name: Cypress run
uses: cypress-io/github-action@v6
with:
install: false
start: npm run dev:emulator
wait-on: 'http://ip6-localhost:3000'
browser: chrome
record: true
tag: ${{ github.event_name }}
env:
# pass the Cypress Cloud record key as an environment variable
CYPRESS_RECORD_KEY: ${{ secrets.CYPRESS_RECORD_KEY }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
COMMIT_INFO_MESSAGE: ${{ github.event.pull_request.title }}
COMMIT_INFO_SHA: ${{ github.event.pull_request.head.sha }}