-
Notifications
You must be signed in to change notification settings - Fork 3
111 lines (105 loc) · 3.55 KB
/
pipeline.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
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
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
name: Build
on:
pull_request:
jobs:
nightly-clippy:
name: Nightly clippy (wasm32)
runs-on: ubuntu-latest
continue-on-error: true
steps:
- uses: actions/checkout@v2
- uses: actions-rs/toolchain@v1
with:
toolchain: nightly
target: wasm32-unknown-unknown
components: clippy
override: true
- uses: actions-rs/clippy-check@v1
with:
token: ${{ secrets.GITHUB_TOKEN }}
args: -p vertigo -p vertigo-macro --all-features --target wasm32-unknown-unknown -- -Dwarnings
name: Vertigo Clippy Output
- uses: actions-rs/clippy-check@v1
with:
token: ${{ secrets.GITHUB_TOKEN }}
args: -p vertigo-demo -p vertigo-example-counter -p vertigo-example-router -p vertigo-example-trafficlights --all-features --target wasm32-unknown-unknown -- -Dwarnings
name: Demo/Examples Clippy Output
nightly-tests:
name: Nightly tests
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions-rs/toolchain@v1
with:
toolchain: nightly
override: true
- uses: actions-rs/cargo@v1
with:
command: test
args: --all-features
- name: Check versions
run: tests/check_versions.sh
fixed-nightly-clippy:
name: Fixed Nightly clippy (wasm32)
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions-rs/toolchain@v1
with:
toolchain: nightly-2023-05-01
target: wasm32-unknown-unknown
components: clippy
override: true
- uses: actions-rs/clippy-check@v1
with:
token: ${{ secrets.GITHUB_TOKEN }}
args: -p vertigo -p vertigo-macro --all-features --target wasm32-unknown-unknown -- -Dwarnings
name: Vertigo Clippy Output
- uses: actions-rs/clippy-check@v1
with:
token: ${{ secrets.GITHUB_TOKEN }}
args: -p vertigo-demo -p vertigo-example-counter -p vertigo-example-router -p vertigo-example-trafficlights --all-features --target wasm32-unknown-unknown -- -Dwarnings
name: Demo/Examples Clippy Output
fixed-nightly-tests:
name: Fixed Nightly tests (wasm32)
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions-rs/toolchain@v1
with:
toolchain: nightly-2023-05-01
target: wasm32-unknown-unknown
components: clippy
override: true
- uses: actions-rs/cargo@v1
with:
command: test
args: --all-features
- name: vertigo-cli
run: |
cargo build --release -p vertigo-cli
rustup default nightly-2023-05-01
mkdir ../vertigo-cli-test
mv target/release/vertigo ../vertigo-cli-test
cd ../vertigo-cli-test
./vertigo new some_app
cd some_app
sed "s/vertigo = .*/vertigo = { path = \"..\/..\/vertigo\/crates\/vertigo\" }/" Cargo.toml > Cargo.toml.new
mv Cargo.toml.new Cargo.toml
../vertigo build
ls -1 build
nightly-clippy-demo-server:
name: Nightly clippy demo server (amd64)
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions-rs/toolchain@v1
with:
toolchain: nightly
components: clippy
override: true
- uses: actions-rs/clippy-check@v1
with:
token: ${{ secrets.GITHUB_TOKEN }}
args: -p vertigo-demo-server --all-features -- -Dwarnings
name: Clippy Output