Skip to content

fix(deps): update dependency stripe to v17 #4915

fix(deps): update dependency stripe to v17

fix(deps): update dependency stripe to v17 #4915

name: Build Lint Test
on:
push:
branches:
- main
pull_request:
workflow_dispatch:
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
build:
name: Build
runs-on: ubuntu-latest
timeout-minutes: 10
steps:
- name: Checkout Repository
uses: actions/checkout@v4
- name: Installing Node
uses: actions/setup-node@v4
with:
cache: "yarn"
node-version-file: ".node-version"
- name: Install Dependencies
run: yarn install --immutable --inline-builds --check-cache
- name: Build
run: yarn build
lint:
name: Lint
runs-on: ubuntu-latest
timeout-minutes: 10
steps:
- name: Checkout Repository
uses: actions/checkout@v4
- name: Installing Node
uses: actions/setup-node@v4
with:
cache: "yarn"
node-version-file: ".node-version"
- name: Install Dependencies
run: yarn install --immutable
- name: Lint
run: yarn lint
test:
name: Test
runs-on: ubuntu-latest
steps:
- name: Checkout Repository
uses: actions/checkout@v4
- name: Installing Node
uses: actions/setup-node@v4
with:
cache: "yarn"
node-version-file: ".node-version"
- name: Install Dependencies
run: yarn install --immutable --inline-builds --check-cache
- name: Run Tests
run: yarn test:ci
- name: Upload code coverage to Codecov
uses: codecov/codecov-action@v4
with:
token: ${{ secrets.CODECOV_TOKEN }}
name: codecov-umbrella
flags: unittests
fail_ci_if_error: true
test-e2e:
name: Test E2E
runs-on: ubuntu-latest
# Service containers to run with `container-job`
services:
# Label used to access the service container
postgres:
# Docker Hub image
image: postgres
# Provide the password for postgres
env:
POSTGRES_USER: pguser
POSTGRES_PASSWORD: password
POSTGRES_DB: onlaunch
# exposing ports for application to use
ports:
- 5432/tcp
# Set health checks to wait until postgres has started
options: >-
--health-cmd pg_isready
--health-interval 10s
--health-timeout 5s
--health-retries 5
steps:
- name: Checkout Repository
uses: actions/checkout@v4
- name: Installing Node
uses: actions/setup-node@v4
with:
cache: "yarn"
node-version-file: ".node-version"
- name: Install Dependencies
run: yarn install --immutable --inline-builds --check-cache
- name: Reset the database
env:
DATABASE_URL: "postgresql://pguser:password@localhost:${{ job.services.postgres.ports[5432] }}/onlaunch?schema=public"
run: yarn prisma migrate reset -f
- name: Cypress run
uses: cypress-io/github-action@v3
with:
project: ./
browser: chrome
build: yarn build
start: yarn start
wait-on: "http://localhost:3000"
env:
DATABASE_URL: "postgresql://pguser:password@localhost:${{ job.services.postgres.ports[5432] }}/onlaunch?schema=public"
NEXTAUTH_SECRET: "ThisIsASecretUsedByCI"