gioser

tawasuyu/taffy

A high performance rust-powered UI layout library

HTML 5544Rust 88Markdown 11TOML 91926 Sutichaykuna

⎇ 01babab32d8138f3c3fa05095fb6c65fca0d3967 .github/workflows/ci.yml YAML · 130 siq'ikuna · 3.2 KB Ñawpa willay ch'uya

Make CSS Grid feature a default feature (#297) 01babab32 · 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  markdownlint:
118    name: Markdown Lint
119    runs-on: ubuntu-latest
120    steps:
121      - uses: actions/checkout@v3
122        with:
123          # Full git history is needed to get a proper list of changed files within `super-linter`
124          fetch-depth: 0
125      - name: Run Markdown Lint
126        uses: docker://ghcr.io/github/super-linter:slim-v4
127        env:
128          VALIDATE_ALL_CODEBASE: true
129          VALIDATE_MARKDOWN: true
130          DEFAULT_BRANCH: master