Skip to content

Chore/68 Initialize Backend #17

Chore/68 Initialize Backend

Chore/68 Initialize Backend #17

Workflow file for this run

name: Precommit tests
on:
push:
branches:
- '*'
pull_request:
branches:
- '*'
jobs:
pre-commit:

Check failure on line 12 in .github/workflows/precommit.yaml

View workflow run for this annotation

GitHub Actions / Precommit tests

Invalid workflow file

The workflow is not valid. .github/workflows/precommit.yaml (Line: 12, Col: 3): The workflow must contain at least one job with no dependencies.
needs: install-dev-tools
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: dev env setup
uses: ./.github/actions/dev-env-setup
- name: set pre-commit cache directory
run: |
echo "PRE_COMMIT_HOME=$GITHUB_WORKSPACE/.pre-commit-cache" >> $GITHUB_ENV
- name: set PY
run: echo "PY=$(python -VV | sha256sum | cut -d' ' -f1)" >> $GITHUB_ENV
- name: create commitlint COMMIT_EDITMSG if not exists
run: |
if test -f ".git/COMMIT_EDITMSG"; then
echo "COMMIT_EDITMSG EXISTS, skipping"
else
touch .git/COMMIT_EDITMSG
fi
- uses: actions/cache@v3
with:
path: |
./.pre-commit-cache
key: pre-commit-${{ env.PY }}-${{ hashFiles('.pre-commit-config.yaml') }}-v3
- run: pre-commit run --all-files