-
Notifications
You must be signed in to change notification settings - Fork 2
36 lines (33 loc) · 922 Bytes
/
ci-build.yaml
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
name: "Code Build Check"
on:
push:
pull_request:
jobs:
build-api:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Installing Rust
uses: actions-rust-lang/setup-rust-toolchain@v1
- name: Building with Cargo
uses: actions-rs/cargo@v1
with:
command: build
args: --release --manifest-path backend/Cargo.toml
use-cross: true
build-app:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Installing Node.js
uses: actions/setup-node@v2
with:
node-version: '20'
- name: Installing dependencies
run: |
npm install --global yarn
yarn
working-directory: frontend
- name: Building the app
run: yarn build
working-directory: frontend