Snapshots #105
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: BoxLang MiniServer Runtime Snapshots | |
on: | |
push: | |
branches: | |
- development | |
workflow_dispatch: | |
inputs: | |
version: | |
required: true | |
#Cancel running builds if another push to branch is made while this build is running | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} | |
cancel-in-progress: true | |
jobs: | |
############################################# | |
# Tests First baby! We fail, no build :( | |
############################################# | |
tests: | |
uses: ./.github/workflows/tests.yml | |
secrets: inherit | |
permissions: | |
checks: write | |
pull-requests: write | |
contents: read | |
issues: read | |
########################################################################################## | |
# Format Source Code | |
########################################################################################## | |
format: | |
name: Code Auto-Formatting | |
runs-on: ubuntu-latest | |
permissions: | |
contents: write | |
checks: write | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Setup Java | |
uses: actions/setup-java@v4 | |
with: | |
distribution: "temurin" | |
java-version: 17 | |
- name: Format Java Source | |
run: ./gradlew spotlessApply --stacktrace | |
# - name: Format BoxLang Source | |
# uses: Ortus-Solutions/commandbox-action@v1.0.2 | |
# with: | |
# cmd: run-script format | |
- name: Commit Format Changes | |
uses: stefanzweifel/git-auto-commit-action@v5 | |
with: | |
commit_message: Apply cfformat changes | |
############################################# | |
# Build Snapshot Release | |
############################################# | |
build: | |
uses: ./.github/workflows/release.yml | |
needs: [tests, format] | |
secrets: inherit | |
permissions: | |
checks: write | |
contents: write | |
with: | |
snapshot: true |