-
Notifications
You must be signed in to change notification settings - Fork 5
60 lines (57 loc) · 1.23 KB
/
uplink.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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
name: uplink
on:
push:
branches: main
paths:
- 'uplink/**'
- 'Cargo.lock'
- 'Cargo.toml'
- 'docker-compose.yaml'
- 'Makefile'
pull_request:
paths:
- 'uplink/**'
- 'Cargo.lock'
- 'Cargo.toml'
- 'docker-compose.yaml'
- 'Makefile'
env:
# Show colors for cargo output
CARGO_TERM_COLOR: always
jobs:
check-implementation:
runs-on: ubuntu-latest
defaults:
run:
working-directory: uplink
steps:
- name: Checkouts repository
uses: actions/checkout@v2
- name: Build uplink-sys
run: make build
working-directory: .
- name: Lint
run: make lint
env:
RUST_BACKTRACE: full
- name: Clean up
if: always()
run: make clean
- name: Publish crate simulation
run: make publish-test
test-implementation:
runs-on: ubuntu-latest
defaults:
run:
working-directory: uplink
steps:
- name: Checkouts repository
uses: actions/checkout@v2
- name: Build uplink-sys
run: make build
working-directory: .
- name: Run tests
run: make test
- name: Clean up
if: always()
run: make clean