-
Notifications
You must be signed in to change notification settings - Fork 520
87 lines (70 loc) · 1.91 KB
/
check.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
name: check
on:
pull_request:
workflow_dispatch:
workflow_call:
inputs:
branch:
description: "ref branch for this workflow"
default: "master"
required: true
type: string
env:
CARGO_TERM_COLOR: always
jobs:
checks:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v3
with:
ref: ${{ inputs.branch }}
- name: Shellcheck
if: always()
run: bin/check/shellcheck.sh
- name: Check ad hoc
if: always()
run: bin/check/ad_hoc.sh
- name: Git leaks
if: always()
uses: addnab/docker-run-action@v3
with:
image: ghcr.io/zricethezav/gitleaks:latest
options: --volume ${{ github.workspace }}:/work:rw --workdir /work --privileged --env CARGO_TERM_COLOR=always
run: gitleaks detect --verbose --config .github/workflows/config/gitleaks.toml
- name: Hadolint
if: always()
run: bin/check/hadolint.sh ./contrib/docker/Dockerfile
- name: Install prerequisites
if: always()
run: |
bin/check/install_prerequisites.sh
bin/install_python3_venv.sh
export PATH=/tmp/hurl-python3-venv/bin:$PATH
which python3
python3 --version
pip --version
- name: Check Rust version
if: always()
run: bin/check/rust_version.py 7
- name: Rustfmt
if: always()
run: bin/check/rustfmt.sh
- name: Clippy
if: always()
run: bin/check/clippy.sh
- name: Black
if: always()
run: bin/check/black.sh
- name: Check XML/HTML files
if: always()
run: bin/check/xmllint.sh
- name: Run crates update
if: always()
run: bin/check/crates.sh
- name: Check crates licence
if: always()
run: python3 bin/check/license.py
- name: Check hurl crate API changes
if: always()
run: bin/check/compatibility.sh