concurrent build stopage #433
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
# This workflow tests the ColdBox code using many permutations in the matrix. | |
# If successful, then it creates the bleeding edge artifact and publishes it to S3 and ForgeBox | |
name: ColdBox Snapshots | |
on: | |
push: | |
branches: | |
- development | |
# Unique group name per workflow-branch/tag combo | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.ref }} | |
cancel-in-progress: true | |
jobs: | |
############################################# | |
# Tests First baby! We fail, no build :( | |
############################################# | |
tests: | |
uses: ./.github/workflows/tests.yml | |
secrets: inherit | |
########################################################################################## | |
# Format Source Code | |
########################################################################################## | |
format: | |
name: Code Auto-Formatting | |
runs-on: ubuntu-20.04 | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Auto-format | |
uses: Ortus-Solutions/[email protected] | |
with: | |
cmd: run-script format | |
- name: Commit Format Changes | |
uses: stefanzweifel/git-auto-commit-action@v4 | |
with: | |
commit_message: Apply cfformat changes | |
push_options: --force | |
############################################# | |
# Build Snapshot Release | |
############################################# | |
build: | |
uses: ./.github/workflows/release.yml | |
needs: [ tests, format ] | |
secrets: inherit | |
with: | |
snapshot: true |