-
Notifications
You must be signed in to change notification settings - Fork 0
41 lines (39 loc) · 856 Bytes
/
test.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
37
38
39
40
41
name: Test
on:
pull_request:
branches: [master]
push:
branches: [master]
schedule:
# Run every day @9:54. 9:54 chosen randomly.
- cron: '54 9 * * *'
jobs:
test-backend:
name: Backend
runs-on: ubuntu-latest
defaults:
run:
working-directory: backend
steps:
- uses: actions/checkout@v2
- uses: actions-rs/toolchain@v1
with:
toolchain: stable
profile: minimal
- name: Build
run: cargo build
- name: Test
run: cargo test
test-frontend:
name: Frontend
runs-on: ubuntu-latest
defaults:
run:
working-directory: frontend
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
- name: Install
run: yarn --frozen-lockfile install
- name: Test
run: yarn test