-
Notifications
You must be signed in to change notification settings - Fork 4
46 lines (46 loc) · 1.18 KB
/
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
42
43
44
45
46
name: test
on:
push:
branches:
- main
pull_request:
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: Swatinem/rust-cache@v2
- run: tools/build.sh
- run: git diff --exit-code
- uses: actions/upload-artifact@v3
with:
name: build
path: target/release/turtle
unit_test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: Swatinem/rust-cache@v2
- run: cargo test
integration_test:
needs: build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: ruby/setup-ruby@v1
- uses: actions/download-artifact@v3
with:
name: build
path: target/release
- run: chmod +x target/release/turtle
- run: tools/integration_test.sh
integration_test_test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: ruby/setup-ruby@v1
- uses: raviqqe/enable-homebrew@main
- run: brew install ninja
- run: mkdir -p target/release
- run: cp tools/turtle.sh target/release/turtle
- run: tools/integration_test.sh --tags 'not @turtle'