ci: ♻️ Make tests, linting and checks pass before build is run

This commit is contained in:
Jesse Wierzbinski 2024-12-31 17:35:27 +01:00
parent deada6cbd9
commit 9d88fdbe53
No known key found for this signature in database
4 changed files with 15 additions and 16 deletions

View file

@ -1,11 +1,7 @@
name: Check Types
on:
push:
branches: ["*"]
pull_request:
# The branches below must be a subset of the branches above
branches: ["main"]
workflow_call:
jobs:
tests:

View file

@ -2,14 +2,25 @@ name: Build Docker Images
on:
push:
branches: ["main"]
branches: ["*"]
# Publish semver tags as releases.
tags: ["v*.*.*"]
pull_request:
branches: ["main"]
jobs:
lint:
uses: ./.github/workflows/lint.yml
check:
uses: ./.github/workflows/check.yml
tests:
uses: ./.github/workflows/tests.yml
build:
if: ${{ success() }}
needs: [lint, check, tests]
runs-on: ubuntu-latest
permissions:
contents: read

View file

@ -1,11 +1,7 @@
name: Lint & Format
on:
push:
branches: ["*"]
pull_request:
# The branches below must be a subset of the branches above
branches: ["main"]
workflow_call:
jobs:
tests:

View file

@ -1,11 +1,7 @@
name: Tests
on:
push:
branches: ["*"]
pull_request:
# The branches below must be a subset of the branches above
branches: ["main"]
workflow_call:
jobs:
tests: