-
-
Notifications
You must be signed in to change notification settings - Fork 155
77 lines (69 loc) · 2.11 KB
/
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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
name: Test
on: [push, pull_request]
concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
cancel-in-progress: true
env:
CARGO_TERM_COLOR: always
RUST_BACKTRACE: full
jobs:
native:
strategy:
matrix:
os: [windows-latest, macos-latest, ubuntu-latest]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v3
- uses: Swatinem/rust-cache@v2
- run: rustup toolchain install stable --profile minimal
- run: rustup component add rustfmt clippy
- run: cargo fetch
- run: cargo fmt -- --check --color always
- name: cargo clippy
run: |
if [ "$RUNNER_OS" == "Windows" ]; then
cargo clippy --all-targets --all-features
else
cargo clippy --all-features --all-targets -- -D warnings
fi
shell: bash
- run: cargo test
# cli:
# strategy:
# matrix:
# os: [macos-latest]
# runs-on: ${{ matrix.os }}
# steps:
# - uses: actions/checkout@v3
# - uses: Swatinem/rust-cache@v2
# - run: rustup toolchain install stable --profile minimal
# - run: cargo fetch
# - run: cargo build -p rio --bin rio
# - run: RIO_LOG_LEVEL=info ./target/debug/rio -e touch ${HOME}/rio.test
# - run: |
# FILE=${HOME}/rio.test
# if [ -f "$FILE" ]; then
# echo "$FILE exists."
# else
# echo "$FILE does not exist."
# exit 1
# fi
# shell: bash
webassembly:
runs-on: ubuntu-latest
env:
GECKODRIVER: chromedriver
steps:
- uses: actions/checkout@v3
- uses: Swatinem/rust-cache@v2
with:
cache-all-crates: "true"
- run: rustup toolchain install stable --profile minimal --target wasm32-unknown-unknown
- run: cargo fetch
- run: cargo build -p sugarloaf --target wasm32-unknown-unknown
- run: cd ./sugarloaf && make install
# - uses: nanasess/setup-chromedriver@v2
# - run: |
# export DISPLAY=:99
# chromedriver --url-base=/wd/hub &
# - run: make test-renderer