mirror of
https://github.com/Orange-OpenSource/hurl.git
synced 2024-12-19 00:22:10 +03:00
e8abb73955
Signed-off-by: Rui Chen <rui@chenrui.dev>
88 lines
1.9 KiB
YAML
88 lines
1.9 KiB
YAML
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@v4
|
|
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
|