forked from stoically/syn-rsx
-
Notifications
You must be signed in to change notification settings - Fork 11
44 lines (32 loc) · 1 KB
/
ci.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
name: ci
on: [push, pull_request]
jobs:
ci:
name: ci
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: dtolnay/rust-toolchain@nightly
with:
components: rustfmt
- name: fmt
run: cargo +nightly fmt --all -- --check
- uses: dtolnay/rust-toolchain@stable
- name: build
run: cargo build
- name: clippy
run: cargo clippy --workspace
- name: test on Stable
run: cargo test --workspace
- name: Tests with rawtext hack
run: cargo test -p rstml --features "rawtext-stable-hack-module"
- name: Test extendable feature in rstml-control-flow
run: cargo test -p rstml-control-flow --features "extendable"
- uses: dtolnay/rust-toolchain@nightly
- name: test on Nightly
run: cargo test --workspace
- name: coverage
run: |
cargo install cargo-tarpaulin
cargo tarpaulin --out xml
bash <(curl -s https://codecov.io/bash)