git

My personal website source code
Log | Files | Refs | Submodules | README | LICENSE

commit 757b45b59e4e92186b0933bab9a1733b4a93323e
parent ba7b92811fb560f372e96d65e490375a82e408aa
Author: Luís Ferreira <[email protected]>
Date:   Thu, 30 Sep 2021 17:22:46 +0100

github: workflows: add check workflow

* pre-commit job
* shellcheck job

Signed-off-by: Luís Ferreira <[email protected]>

Diffstat:
A.github/workflows/checks.yml | 26++++++++++++++++++++++++++
1 file changed, 26 insertions(+), 0 deletions(-)

diff --git a/.github/workflows/checks.yml b/.github/workflows/checks.yml @@ -0,0 +1,26 @@ +name: checks + +on: + pull_request: + branches: + - master + push: + branches: + - master + workflow_dispatch: + +jobs: + pre-commit: + runs-on: ubuntu-latest + if: github.event_name == 'pull_request' + steps: + - uses: actions/checkout@v2 + - uses: actions/setup-python@v2 + - uses: pre-commit/[email protected] + + shellcheck: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - name: Run ShellCheck + uses: ludeeus/[email protected]