Skip to content

Merge pull request #103 from yummy-recipes/defer-algoliaclient #207

Merge pull request #103 from yummy-recipes/defer-algoliaclient

Merge pull request #103 from yummy-recipes/defer-algoliaclient #207

Workflow file for this run

name: CI
on:
push:
branches: [master]
pull_request:
workflow_dispatch:
permissions:
contents: write
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version-file: .nvmrc
cache: "yarn"
- name: Install dependencies
run: yarn install --immutable
- name: Test
run: yarn test
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version-file: .nvmrc
cache: "yarn"
- name: Install dependencies
run: yarn install --immutable
- name: Lint
run: yarn lint
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version-file: .nvmrc
cache: "yarn"
- name: Install dependencies
run: yarn install --immutable
- name: Migrate db
run: yarn prisma migrate deploy
- name: Seed database with dummy data
run: yarn seed
- name: Build
run: yarn build
deploy:
needs:
- build
- test
if: github.ref == 'refs/heads/master'
uses: ./.github/workflows/deploy.yml
with:
ref: ${{ github.sha }}
secrets: inherit