Skip to content

feat: macos build support #330

feat: macos build support

feat: macos build support #330

Workflow file for this run

name: CI
on:
push:
branches:
- master
pull_request:
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
# TODO: Adapt to new flutter
# check-frontend:
# name: Format, Lint, Types (Frontend)
# runs-on: ubuntu-latest
#
# steps:
# - name: Checkout repository
# uses: actions/checkout@v2
#
# - uses: pnpm/action-setup@v4
# with:
# version: 8
#
# - name: Install deps
# run: pnpm i
# working-directory: ./frontend
#
# - name: Check Format
# run: pnpm format:check
# working-directory: ./frontend
#
# - name: Check Lint
# run: pnpm lint
# working-directory: ./frontend
#
# - name: Check Types
# run: pnpm types
# working-directory: ./frontend
#
check-backend:
name: Format, Lint, Types (Backend)
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v2
- uses: pnpm/action-setup@v4
with:
version: 9
- name: Install deps
run: pnpm i
working-directory: ./backend
- name: Check Format
run: pnpm format:check
working-directory: ./backend
- name: Check Lint
run: pnpm lint
working-directory: ./backend
- name: Check Types
run: pnpm types
working-directory: ./backend
- name: Run tests
run: |
echo DATABASE_URL=${{ secrets.DATABASE_URL }} >> .env.test
pnpm test
working-directory: ./backend