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-08-26 18:06:36 +03:00
|
|
|
- name: Install Prerequisites
|
|
|
|
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: Shellcheck
|
2022-07-30 05:49:56 +03:00
|
|
|
run: bin/check/shellcheck.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
|
|
|
|
2022-06-07 15:17:45 +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-02 21:01:49 +03:00
|
|
|
- name: Check CHANGELOG
|
2022-11-03 18:10:38 +03:00
|
|
|
run: bin/check/changelog.sh
|
|
|
|
|
2022-10-25 16:22:38 +03:00
|
|
|
- name: Check ad hoc
|
|
|
|
run: bin/check/ad_hoc.sh
|
2022-11-03 18:10:38 +03:00
|
|
|
|