hurl/.github/workflows/check.yml

88 lines
1.9 KiB
YAML
Raw Normal View History

2022-06-05 22:08:50 +03:00
name: check
2022-11-03 18:10:38 +03:00
on:
pull_request:
workflow_dispatch:
workflow_call:
inputs:
branch:
description: "ref branch for this workflow"
default: "master"
required: true
type: string
2022-06-05 22:08:50 +03:00
env:
CARGO_TERM_COLOR: always
jobs:
2022-07-29 15:55:02 +03:00
2022-08-26 18:06:36 +03:00
checks:
2022-06-05 22:08:50 +03:00
runs-on: ubuntu-latest
steps:
2022-11-03 18:10:38 +03:00
2022-06-05 22:08:50 +03:00
- name: Checkout repository
uses: actions/checkout@v4
2022-11-03 18:10:38 +03:00
with:
ref: ${{ inputs.branch }}
2022-11-16 16:57:12 +03:00
- name: Shellcheck
if: always()
2022-11-16 16:57:12 +03:00
run: bin/check/shellcheck.sh
- name: Check ad hoc
if: always()
2022-11-16 16:57:12 +03:00
run: bin/check/ad_hoc.sh
2022-11-16 16:51:05 +03:00
- name: Git leaks
if: always()
2022-11-16 16:51:05 +03:00
uses: addnab/docker-run-action@v3
with:
image: ghcr.io/zricethezav/gitleaks:latest
2022-11-16 16:51:05 +03:00
options: --volume ${{ github.workspace }}:/work:rw --workdir /work --privileged --env CARGO_TERM_COLOR=always
run: gitleaks detect --verbose --config .github/workflows/config/gitleaks.toml
2022-11-30 18:31:18 +03:00
- name: Hadolint
if: always()
2022-11-30 18:31:18 +03:00
run: bin/check/hadolint.sh ./contrib/docker/Dockerfile
- name: Install prerequisites
if: always()
2023-06-13 12:27:02 +03:00
run: |
bin/check/install_prerequisites.sh
2023-06-13 12:27:02 +03:00
bin/install_python3_venv.sh
export PATH=/tmp/hurl-python3-venv/bin:$PATH
which python3
python3 --version
pip --version
2023-03-12 14:56:43 +03:00
- name: Check Rust version
if: always()
2023-03-12 14:56:43 +03:00
run: bin/check/rust_version.py 7
2022-08-26 18:06:36 +03:00
- name: Rustfmt
if: always()
2022-07-30 05:49:56 +03:00
run: bin/check/rustfmt.sh
2022-11-03 18:10:38 +03:00
2022-08-26 18:06:36 +03:00
- name: Clippy
if: always()
2022-07-30 05:49:56 +03:00
run: bin/check/clippy.sh
2022-11-03 18:10:38 +03:00
2022-08-26 18:06:36 +03:00
- name: Black
if: always()
2022-07-30 05:49:56 +03:00
run: bin/check/black.sh
2022-11-03 18:10:38 +03:00
2022-08-26 18:06:36 +03:00
- name: Check XML/HTML files
if: always()
2022-08-26 18:06:36 +03:00
run: bin/check/xmllint.sh
2022-11-03 18:10:38 +03:00
- name: Run crates update
if: always()
run: bin/check/crates.sh
2022-11-03 18:10:38 +03:00
2022-11-18 00:26:44 +03:00
- name: Check crates licence
if: always()
2022-11-18 00:26:44 +03:00
run: python3 bin/check/license.py
- name: Check hurl crate API changes
if: always()
run: bin/check/compatibility.sh