-
-
Notifications
You must be signed in to change notification settings - Fork 3
30 lines (25 loc) · 878 Bytes
/
build.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
name: Build & test front & functions project
on: [push, pull_request]
jobs:
build:
name: Build & test front & functions project
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Install bun
uses: oven-sh/setup-bun@v1
- run: bun install --frozen-lockfile
- run: bun run build
- run: bun run tscheck
- name: Setup Node.js environment
uses: actions/setup-node@v4
with:
node-version-file: ./functions/.nvmrc
- name: Build serverless functions
working-directory: ./functions
run: |
npm ci
npm run build
- name: Test serverless functions
working-directory: ./functions
run: npm run test