-
Notifications
You must be signed in to change notification settings - Fork 0
38 lines (35 loc) · 898 Bytes
/
Copy pathci.yml
File metadata and controls
38 lines (35 loc) · 898 Bytes
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
31
32
33
34
35
36
37
38
name: backend + frontend setup
on:
push:
branches: [ "master" ]
pull_request:
branches: [ "master" ]
jobs:
build-backend:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions-rs/toolchain@v1
with:
toolchain: stable
override: true
- name: Build backend
run: cargo build --verbose
working-directory: ./backend
- name: Test backend
run: cargo test --verbose
working-directory: ./backend
build-frontend:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Setup Node.js
uses: actions/setup-node@v3
with:
node-version: '20'
- name: Install dependencies
run: npm ci
working-directory: ./frontend
- name: Build frontend
run: npm run build
working-directory: ./frontend