generated from amosproj/amos202Xss0Y-projname
-
Notifications
You must be signed in to change notification settings - Fork 1
91 lines (69 loc) · 1.91 KB
/
lint_build_test.yml
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
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
# SPDX-FileCopyrightText: 2024 Felix Hilgers <[email protected]>
#
# SPDX-License-Identifier: MIT
name: Lint, Build, Test
on:
pull_request:
push:
branches:
- dev
workflow_dispatch:
jobs:
reuse-lint:
name: Reuse Lint
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@v4
- uses: ./.github/actions/setup-base
- name: Lint
run: nix run .#reuseLint
documentation:
name: Build Documentation
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@v4
- uses: ./.github/actions/setup-base
- name: Asciidoctor
run: |
nix develop --command \
asciidoctor -r asciidoctor-diagram Documentation/asciidoc/main.adoc -o index.html
gradle-lint:
name: Gradle Lint
runs-on: ubuntu-24.04
needs: [reuse-lint]
steps:
- uses: actions/checkout@v4
- uses: ./.github/actions/setup-base
- uses: ./.github/actions/setup-gradle-cache
- name: Lint
run: nix run .#gradleLint
rust-lint:
name: Rust Lint
runs-on: ubuntu-24.04
needs: [reuse-lint]
steps:
- uses: actions/checkout@v4
- uses: ./.github/actions/setup-base
- uses: ./.github/actions/setup-rust-cache
- name: Lint
run: nix run .#rustLint
gradle-build-test:
name: Gradle Test
runs-on: ubuntu-24.04
needs: gradle-lint
steps:
- uses: actions/checkout@v4
- uses: ./.github/actions/setup-base
- uses: ./.github/actions/setup-gradle-cache
- name: Build and Test
run: nix run .#gradleTest
rust-build-test:
name: Rust Test
runs-on: ubuntu-24.04
needs: rust-lint
steps:
- uses: actions/checkout@v4
- uses: ./.github/actions/setup-base
- uses: ./.github/actions/setup-rust-cache
- name: Build and Test
run: nix run .#rustTest