Skip to content

Commit

Permalink
Merge pull request #1 from ErikBjare/main
Browse files Browse the repository at this point in the history
ci: added basic build CI workflow
  • Loading branch information
bjsi authored Feb 22, 2024
2 parents 8d0c8a9 + adfd3da commit 44924c5
Showing 1 changed file with 33 additions and 0 deletions.
33 changes: 33 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: Build

on:
push:
branches: [ main ]
pull_request:
branches: [ main ]

env:
# TODO: this needs to be set to a valid db for the build:prisma to work
DATABASE_URL: "postgres://todo"

jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [18.x]

steps:
- uses: actions/checkout@v2
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
- name: Install yarn
run: npm install -g yarn
- name: Install deps
run: yarn install
- name: Generate prisma
run: cd packages/server && npx prisma generate
- name: Build
run: npm run _build

0 comments on commit 44924c5

Please sign in to comment.