Skip to content

Commit c2a9f19

Browse files
committed
simplifications
1 parent 71dd65c commit c2a9f19

File tree

2 files changed

+33
-45
lines changed

2 files changed

+33
-45
lines changed

.github/workflows/release.yml

Lines changed: 0 additions & 43 deletions
Original file line numberDiff line numberDiff line change
@@ -15,55 +15,16 @@ on:
1515
required: false
1616
default: false
1717
type: boolean
18-
doTests:
19-
description: 'Run tests before the release'
20-
required: false
21-
default: true
22-
type: boolean
2318

2419
env:
2520
MODULE_ID: cbvalidation
26-
doTests: ${{ inputs.doTests || false }}
27-
snapshot: ${{ inputs.snapshot || false }}
2821

2922
jobs:
30-
##########################################################################################
31-
# Module Tests
32-
##########################################################################################
33-
tests:
34-
if: ${{ inputs.doTests }}
35-
secrets: inherit
36-
uses: ./.github/workflows/tests.yml
37-
38-
##########################################################################################
39-
# Format Source Code
40-
# This only fires on `development`, stable releases should not have auto-formatting
41-
##########################################################################################
42-
format:
43-
name: Code Auto-Formatting
44-
runs-on: ubuntu-20.04
45-
if: ${{ inputs.snapshot && ( success() || !inputs.doTests ) }}
46-
needs: [ tests ]
47-
steps:
48-
- uses: actions/checkout@v3
49-
50-
- name: Auto-format
51-
uses: Ortus-Solutions/[email protected]
52-
with:
53-
cmd: run-script format
54-
55-
- name: Commit Format Changes
56-
uses: stefanzweifel/git-auto-commit-action@v4
57-
with:
58-
commit_message: Apply cfformat changes
59-
6023
##########################################################################################
6124
# Build & Publish
6225
##########################################################################################
6326
build:
6427
name: Build & Publish
65-
if: ${{ success() || !inputs.doTests }}
66-
needs: [ tests, format ]
6728
runs-on: ubuntu-20.04
6829
steps:
6930
- name: Checkout Repository
@@ -75,10 +36,6 @@ jobs:
7536
distribution: "temurin"
7637
java-version: "11"
7738

78-
- name: Test
79-
run: |
80-
echo "${{ env.snapshot }} ${{ env.doTests }}"
81-
8239
# - name: Setup CommandBox
8340
# uses: Ortus-Solutions/[email protected]
8441
# with:

.github/workflows/snapshot.yml

Lines changed: 33 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,40 @@ on:
66
- 'development'
77

88
jobs:
9-
call-workflow:
9+
##########################################################################################
10+
# Module Tests
11+
##########################################################################################
12+
tests:
13+
secrets: inherit
14+
uses: ./.github/workflows/tests.yml
15+
16+
##########################################################################################
17+
# Format Source Code
18+
# This only fires on `development`, stable releases should not have auto-formatting
19+
##########################################################################################
20+
format:
21+
name: Code Auto-Formatting
22+
needs: [ tests ]
23+
runs-on: ubuntu-20.04
24+
steps:
25+
- uses: actions/checkout@v3
26+
27+
- name: Auto-format
28+
uses: Ortus-Solutions/[email protected]
29+
with:
30+
cmd: run-script format
31+
32+
- name: Commit Format Changes
33+
uses: stefanzweifel/git-auto-commit-action@v4
34+
with:
35+
commit_message: Apply cfformat changes
36+
37+
##########################################################################################
38+
# Release it
39+
##########################################################################################
40+
release:
1041
uses: ./.github/workflows/release.yml
42+
needs: [ format ]
1143
secrets: inherit
1244
with:
13-
doTests: true
1445
snapshot: true

0 commit comments

Comments
 (0)