gioser

tawasuyu/taffy

A high performance rust-powered UI layout library

Rust 709HTML 662Markdown 12TOML 62348 Definitions

⎇ e2b3b2401f1f9bc4b4da89a5da1fc95525725891 .github/workflows/ci.yml YAML · 148 lines · 3.6 KB History raw

Fix `cargo doc` warnings + add `cargo doc` to CI (#360) e2b3b2401 · Nico Burns ·

1on:
2  pull_request:
3  push:
4    branches:
5      - main
6      - 0.2.x
7
8name: Continuous integration
9
10jobs:
11  test-features-none:
12    name: "Test Suite [Features: None]"
13    runs-on: ubuntu-latest
14    steps:
15      - uses: actions/checkout@v3
16      - uses: actions-rs/toolchain@v1
17        with:
18          profile: minimal
19          toolchain: stable
20          override: true
21      - uses: actions-rs/cargo@v1
22        with:
23          command: test
24          args: --no-default-features
25
26  test-features-default:
27    name: "Test Suite [Features: Default]"
28    runs-on: ubuntu-latest
29    steps:
30      - uses: actions/checkout@v3
31      - uses: actions-rs/toolchain@v1
32        with:
33          profile: minimal
34          toolchain: stable
35          override: true
36      - uses: actions-rs/cargo@v1
37        with:
38          command: test
39
40  test-features-alloc:
41    name: "Test Suite [Features: alloc]"
42    runs-on: ubuntu-latest
43    steps:
44      - uses: actions/checkout@v3
45      - uses: actions-rs/toolchain@v1
46        with:
47          profile: minimal
48          toolchain: stable
49          override: true
50      - uses: actions-rs/cargo@v1
51        with:
52          command: test
53          args: --no-default-features --features alloc,grid
54
55  test-features-alloc-no-grid:
56    name: "Test Suite [Features: alloc (no grid)]"
57    runs-on: ubuntu-latest
58    steps:
59      - uses: actions/checkout@v3
60      - uses: actions-rs/toolchain@v1
61        with:
62          profile: minimal
63          toolchain: stable
64          override: true
65      - uses: actions-rs/cargo@v1
66        with:
67          command: test
68          args: --no-default-features --features alloc
69
70  test-features-default-no-grid:
71    name: "Test Suite [Features: std (no grid)]"
72    runs-on: ubuntu-latest
73    steps:
74      - uses: actions/checkout@v3
75      - uses: actions-rs/toolchain@v1
76        with:
77          profile: minimal
78          toolchain: stable
79          override: true
80      - uses: actions-rs/cargo@v1
81        with:
82          command: test
83          args: --no-default-features --features std
84
85  fmt:
86    name: Rustfmt
87    runs-on: ubuntu-latest
88    steps:
89      - uses: actions/checkout@v3
90      - uses: actions-rs/toolchain@v1
91        with:
92          profile: minimal
93          toolchain: stable
94          override: true
95      - run: rustup component add rustfmt
96      - uses: actions-rs/cargo@v1
97        with:
98          command: fmt
99          args: --all -- --check
100
101  clippy:
102    name: Clippy
103    runs-on: ubuntu-latest
104    steps:
105      - uses: actions/checkout@v3
106      - uses: actions-rs/toolchain@v1
107        with:
108          profile: minimal
109          toolchain: nightly
110          override: true
111      - run: rustup component add clippy
112      - uses: actions-rs/cargo@v1
113        with:
114          command: clippy
115          args: --workspace -- -D warnings
116
117  doc:
118    name: Documentation
119    runs-on: ubuntu-latest
120    steps:
121      - uses: actions/checkout@v3
122      - uses: actions-rs/toolchain@v1
123        with:
124          profile: minimal
125          toolchain: stable
126          override: true
127      - run: rustup component add clippy
128      - uses: actions-rs/cargo@v1
129        with:
130          command: doc
131        env:
132          RUSTDOCFLAGS: "-D warnings"
133
134
135  markdownlint:
136    name: Markdown Lint
137    runs-on: ubuntu-latest
138    steps:
139      - uses: actions/checkout@v3
140        with:
141          # Full git history is needed to get a proper list of changed files within `super-linter`
142          fetch-depth: 0
143      - name: Run Markdown Lint
144        uses: docker://ghcr.io/github/super-linter:slim-v4
145        env:
146          VALIDATE_ALL_CODEBASE: true
147          VALIDATE_MARKDOWN: true
148          DEFAULT_BRANCH: master