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

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

jobs:
  Check:
    strategy:
      fail-fast: false
      matrix:
        os: [ubuntu-latest, windows-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