Skip to content

Commit

Permalink
Run Docker, Lint and Test jobs for all CI pipelines
Browse files Browse the repository at this point in the history
  • Loading branch information
zimmski committed Oct 4, 2024
1 parent 14762c2 commit 9bdec1b
Show file tree
Hide file tree
Showing 6 changed files with 9 additions and 40 deletions.
15 changes: 0 additions & 15 deletions .github/workflows/branch.yml

This file was deleted.

18 changes: 8 additions & 10 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,6 @@
name: CI

on:
push:
branches: ['main']
pull_request:
branches: ['main']
on: [push, release]

concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
Expand All @@ -13,20 +9,22 @@ concurrency:
jobs:
docker:
name: 'Run docker image building'
uses: ./.github/workflows/docker.yml
uses: ./.github/workflows/job/docker.yml
lint:
name: 'Lint the repository'
uses: ./.github/workflows/lint.yml
uses: ./.github/workflows/job/lint.yml
test:
name: 'Run tests and lint artifacts'
needs:
- docker
- lint
strategy:
fail-fast: false # Run the whole matrix for maximum information, no matter if we fail in one entry early
fail-fast: false # Run the whole matrix for maximum information. No matter if we fail with one job early.
matrix:
os:
- 'macOS-latest'
- 'ubuntu-latest'
- 'windows-latest'
uses: ./.github/workflows/test.yml
uses: ./.github/workflows/job/test.yml
with:
os: ${{ matrix.os }}
needs: docker
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
on:
workflow_call:

jobs:
docker:
runs-on: ubuntu-latest
Expand Down
3 changes: 0 additions & 3 deletions .github/workflows/lint.yml → .github/workflows/job/lint.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
on:
workflow_call:

jobs:
lint:
runs-on: ubuntu-latest
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ on:
os:
required: true
type: string

jobs:
test:
runs-on: ${{ inputs.os }}
Expand Down
9 changes: 0 additions & 9 deletions .github/workflows/release.yml

This file was deleted.

0 comments on commit 9bdec1b

Please sign in to comment.