Skip to content

ci: Introduce buildifier style check #6

ci: Introduce buildifier style check

ci: Introduce buildifier style check #6

Workflow file for this run

---
name: Run unit tests
on:
push:
branches:
- main
pull_request:
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
unit-test:

Check failure on line 14 in .github/workflows/tests.yml

View workflow run for this annotation

GitHub Actions / Run unit tests

Invalid workflow file

The workflow is not valid. .github/workflows/tests.yml (Line: 14, Col: 3): The workflow must contain at least one job with no dependencies.
needs: set-up
runs-on: ubuntu-22.04
steps:
- name: Checkout
uses: actions/checkout@v4
with:
ref: ${{ github.head_ref }}
- name: Set up
uses: ./.github/actions/setup.yml
- name: Run unit tests
run: ./execute_tests.bash
style-check:
needs: set-up
runs-on: ubuntu-22.04
steps:
- name: Checkout
uses: actions/checkout@v4
with:
ref: ${{ github.head_ref }}
- name: Set up
uses: ./.github/actions/setup.yml
- name: Run formatters and linters
run: ./style_check.bash
- name: Fail if some files are changed
run: |
if ! git diff --exit-code; then
echo "ERROR: Files are changed by formatters" >&2
exit 1
fi