-
Notifications
You must be signed in to change notification settings - Fork 0
43 lines (38 loc) · 1011 Bytes
/
test.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
31
32
33
34
35
36
37
38
39
40
41
42
43
name: Test
on:
pull_request:
env:
CARGO_TERM_COLOR: always
jobs:
backend_test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/[email protected]
with:
path: target
key: backend-${{ runner.os }}-${{ hashFiles('Cargo.lock') }}
- name: Run tests
run: cargo test
frontend_test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/[email protected]
with:
path: app/node_modules
key: frontend-${{ runner.os }}-${{ hashFiles('app/yarn.lock') }}
- name: Setup Node.js environment
uses: actions/[email protected]
with:
node-version: 18.x
- name: Build
run: cd app && yarn install && yarn build
- name: Run tests
run: cd app && yarn run test
# build_docker:
# runs-on: ubuntu-latest
# steps:
# - uses: actions/checkout@v2
# - name: Build
# run: docker build -t server .