aboutsummaryrefslogtreecommitdiff
path: root/.github/workflows/ci-check-only.yml
blob: b92614a9bb43d3b64975d9368314ef07bef00fd6 (plain) (blame)
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
name: CI (Check only)

on:
  push:
    branches-ignore: [main]
  pull_request:

jobs:
  Check:
    strategy:
      fail-fast: false
      matrix:
        os: [ubuntu-latest, windows-latest, macos-latest]
        item:
          [
            build,
            clippy,
            test,
            arg-picker,
            markdown-code,
            examples,
            docs-refresh,
            api-docs,
          ]
    runs-on: ${{ matrix.os }}
    steps:
      - uses: actions/checkout@v4
      - uses: actions-rust-lang/setup-rust-toolchain@v1

      - run: cargo ci --check-${{ matrix.item }}

      - name: Upload docs test result on failure
        if: failure() && matrix.item == 'markdown-code'
        uses: actions/upload-artifact@v4
        with:
          name: docs-test-result-${{ matrix.os }}.md
          path: .temp/DOCS-TEST-RESULT.md