This repository has been archived by the owner on Oct 6, 2024. It is now read-only.
chore(cruft): update to latest cruft state #72
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
name: Continuous Integration | |
# yamllint disable-line rule:truthy | |
on: | |
# yamllint disable-line rule:empty-values | |
workflow_dispatch: | |
# yamllint disable-line rule:empty-values | |
pull_request: | |
push: | |
branches: | |
- "*" | |
tags-ignore: | |
- "**" | |
permissions: read-all | |
jobs: | |
############################################################################## | |
# | |
# Run on everything but Releases and WIP | |
# | |
############################################################################## | |
linting: | |
if: >- | |
!startsWith(github.event.head_commit.message, 'bump:') && | |
!startsWith(github.event.head_commit.message, 'WIP') | |
name: "Run Linting against all files" | |
uses: jlec/github-actions/.github/workflows/reusable-linting.yml@main | |
secrets: | |
github-token: ${{ secrets.GITHUB_TOKEN }} | |
go-build-test: | |
name: "GO Build & Test" | |
# trunk-ignore(actionlint/if-cond) | |
if: >- | |
${{ github.actor != 'dependabot[bot]' }} && | |
!startsWith(github.event.head_commit.message, 'bump:') && | |
!startsWith(github.event.head_commit.message, 'WIP') | |
needs: | |
- linting | |
uses: jlec/github-actions/.github/workflows/reusable-ci-go.yml@main | |
secrets: | |
pat: ${{ secrets.PAT_GITHUB_TOKEN }} | |
dependabot: | |
name: "Handle dependabot PR" | |
# trunk-ignore(actionlint/if-cond) | |
if: >- | |
${{ github.actor == 'dependabot[bot]' }} && | |
!startsWith(github.event.head_commit.message, 'bump:') && | |
!startsWith(github.event.head_commit.message, 'WIP') | |
needs: | |
- linting | |
uses: jlec/github-actions/.github/workflows/reusable-pr-dependabot.yml@main | |
permissions: | |
contents: write | |
pull-requests: write | |
secrets: | |
github-token: ${{ secrets.GITHUB_TOKEN }} | |
ci-generic: | |
name: "Run generic CI" | |
# trunk-ignore(actionlint/if-cond) | |
if: >- | |
${{ github.actor != 'dependabot[bot]' }} && | |
!startsWith(github.event.head_commit.message, 'bump:') && | |
!startsWith(github.event.head_commit.message, 'WIP') | |
needs: | |
- go-build-test | |
- dependabot | |
- linting | |
uses: jlec/github-actions/.github/workflows/reusable-ci-generic.yml@main | |
permissions: | |
contents: write | |
pull-requests: write | |
secrets: | |
pat: ${{ secrets.PAT_GITHUB_TOKEN }} | |
github-token: ${{ secrets.GITHUB_TOKEN }} | |
ci-release: | |
name: "Run Release CI" | |
# trunk-ignore(actionlint/if-cond) | |
if: >- | |
${{ github.actor != 'dependabot[bot]' }} && | |
!startsWith(github.event.head_commit.message, 'bump:') && | |
!startsWith(github.event.head_commit.message, 'WIP') | |
needs: | |
- ci-generic | |
uses: jlec/github-actions/.github/workflows/reusable-ci-release.yml@main | |
permissions: | |
contents: write | |
pull-requests: write | |
secrets: | |
pat: ${{ secrets.PAT_GITHUB_TOKEN }} | |
github-token: ${{ secrets.GITHUB_TOKEN }} |