Skip to content

Commit

Permalink
chore: refactor into reusable workflows
Browse files Browse the repository at this point in the history
Signed-off-by: Sam Gammon <[email protected]>
  • Loading branch information
sgammon committed Mar 8, 2024
1 parent a3f7bca commit ece47cd
Show file tree
Hide file tree
Showing 3 changed files with 52 additions and 6 deletions.
8 changes: 2 additions & 6 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -1,12 +1,8 @@
name: CI

on:
push:
branches:
- master
pull_request:
branches:
- master
workflow_call: {}
workflow_dispatch: {}

permissions:
contents: read
Expand Down
25 changes: 25 additions & 0 deletions .github/workflows/on.pr.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: PR

on:
pull_request:
branches:
- master

permissions:
contents: read

jobs:
## Run main CI build and tests.
run-ci:
name: "Build & Test"
uses: ./.github/workflows/ci.yml

## Publish and check the dependency graph.
checks-dependency-graph:
name: "Checks"
uses: ./.github/workflows/dependency-review.yml

## Run CodeQL checks
checks-codeql:
name: "Checks"
uses: ./.github/workflows/codeql.yml
25 changes: 25 additions & 0 deletions .github/workflows/on.push.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: Push

on:
push:
branches:
- master

permissions:
contents: read

jobs:
## Run main CI build and tests.
run-ci:
name: "Build & Test"
uses: ./.github/workflows/ci.yml

## Publish and check the dependency graph.
checks-dependency-graph:
name: "Checks"
uses: ./.github/workflows/dependency-review.yml

## Run CodeQL checks
checks-codeql:
name: "Checks"
uses: ./.github/workflows/codeql.yml

0 comments on commit ece47cd

Please sign in to comment.