Repository navigation
62 lines (56 loc) · 1.74 KB
/
Copy pathchecks.yml
File metadata and controls
62 lines (56 loc) · 1.74 KB
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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
name: Checks
# The light checks that run on every push: the formatting of the changed lines,
# the documentation, and the workflows and CI scripts. The CPU tests run in the
# merge queue or on request (cpu.yml).
on:
push:
branches:
- master
pull_request:
branches:
- master
merge_group:
permissions:
contents: read
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: ${{ github.event_name == 'pull_request' }}
jobs:
lint:
name: lint
runs-on: ubuntu-24.04
timeout-minutes: 15
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
fetch-depth: 0
persist-credentials: false
- name: Check formatting of the changed lines
env:
AF_LINT_BASE: >-
${{ github.event.pull_request.base.sha || github.event.merge_group.base_sha ||
github.event.before }}
run: .github/scripts/ci.sh --docker lint
docs:
name: docs
runs-on: ubuntu-24.04
timeout-minutes: 30
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
persist-credentials: false
- name: Build the documentation
run: .github/scripts/ci.sh --docker docs
workflows:
name: workflows
runs-on: ubuntu-24.04
timeout-minutes: 10
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
persist-credentials: false
- name: Lint the workflows and CI scripts and test the request policy
run: .github/scripts/ci.sh --docker workflows
- name: Check the macOS job's scripts under bash 3.2
timeout-minutes: 2
run: .github/scripts/check-bash32.sh