hurl/.github/workflows/check.yml

67 lines
1.4 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
2022-11-03 18:10:38 +03:00
uses: actions/checkout@v3
with:
ref: ${{ inputs.branch }}
2022-11-16 16:57:12 +03:00
- name: Shellcheck
run: bin/check/shellcheck.sh
- name: Check ad hoc
run: bin/check/ad_hoc.sh
2022-11-16 16:51:05 +03:00
- name: Git leaks
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
run: bin/check/hadolint.sh ./contrib/docker/Dockerfile
- name: Install prerequisites
2022-08-26 18:06:36 +03:00
run: bin/check/install_prerequisites.sh
2022-11-03 18:10:38 +03:00
2022-08-26 18:06:36 +03:00
- name: Rustfmt
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
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
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
run: bin/check/xmllint.sh
2022-11-03 18:10:38 +03:00
- name: Run crates update
2022-08-05 12:15:22 +03:00
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
run: python3 bin/check/license.py
- name: Check hurl crate API changes
run: bin/check/compatibility.sh