Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: Migrate from Travis CI to GitHub Actions
- Loading branch information
Showing
5 changed files
with
246 additions
and
28 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
on: | ||
schedule: | ||
- cron: 0 0 * * 1 | ||
|
||
jobs: | ||
tests: | ||
runs-on: ubuntu-latest | ||
name: Tests | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
cfengine: ["lucee@5", "lucee@be", "adobe@2016", "adobe@2018", "adobe@be"] | ||
coldbox: ["coldbox@5", "coldbox@6", "coldbox@be"] | ||
steps: | ||
- name: Checkout Repository | ||
uses: actions/checkout@v2 | ||
|
||
- name: Setup Java JDK | ||
uses: actions/setup-java@v1.4.3 | ||
with: | ||
java-version: 11 | ||
|
||
- name: Set Up CommandBox | ||
uses: elpete/setup-commandbox@v1.0.0 | ||
|
||
- name: Install dependencies | ||
run: | | ||
box install | ||
box install ${{ matrix.coldbox }} --noSave | ||
- name: Start server | ||
run: box server start cfengine=${{ matrix.cfengine }} --noSaveSettings | ||
|
||
- name: Run TestBox Tests | ||
run: box testbox run |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,71 @@ | ||
on: | ||
push: | ||
branches-ignore: | ||
- "main" | ||
- "master" | ||
- "development" | ||
pull_request: | ||
branches: | ||
- main | ||
- master | ||
- development | ||
|
||
jobs: | ||
tests: | ||
runs-on: ubuntu-latest | ||
name: Tests | ||
strategy: | ||
fail-fast: true | ||
matrix: | ||
cfengine: ["lucee@5", "adobe@2016", "adobe@2018"] | ||
coldbox: ["coldbox@5", "coldbox@6"] | ||
steps: | ||
- name: Checkout Repository | ||
uses: actions/checkout@v2 | ||
|
||
- name: Setup Java JDK | ||
uses: actions/setup-java@v1.4.3 | ||
with: | ||
java-version: 11 | ||
|
||
- name: Set Up CommandBox | ||
uses: elpete/setup-commandbox@v1.0.0 | ||
|
||
- name: Install dependencies | ||
run: | | ||
box install | ||
box install ${{ matrix.coldbox }} --noSave | ||
- name: Start server | ||
run: box server start cfengine=${{ matrix.cfengine }} --noSaveSettings | ||
|
||
- name: Run TestBox Tests | ||
run: box testbox run | ||
|
||
format: | ||
runs-on: ubuntu-latest | ||
name: Format | ||
steps: | ||
- name: Checkout Repository | ||
uses: actions/checkout@v2 | ||
with: | ||
fetch-depth: 0 | ||
|
||
- name: Setup Java JDK | ||
uses: actions/setup-java@v1.4.3 | ||
with: | ||
java-version: 11 | ||
|
||
- name: Set Up CommandBox | ||
uses: elpete/setup-commandbox@v1.0.0 | ||
|
||
- name: Install CFFormat | ||
run: box install commandbox-cfformat | ||
|
||
- name: Run CFFormat | ||
run: box run-script format | ||
|
||
- name: Commit Format Changes | ||
uses: stefanzweifel/git-auto-commit-action@v4 | ||
with: | ||
commit_message: Apply cfformat changes |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,69 @@ | ||
on: | ||
push: | ||
branches: | ||
- development | ||
|
||
jobs: | ||
tests: | ||
name: Tests | ||
if: "!contains(github.event.head_commit.message, '__SEMANTIC RELEASE VERSION UPDATE__')" | ||
runs-on: ubuntu-latest | ||
strategy: | ||
fail-fast: true | ||
matrix: | ||
cfengine: ["lucee@5", "adobe@2016", "adobe@2018"] | ||
coldbox: ["coldbox@5", "coldbox@6"] | ||
steps: | ||
- name: Checkout Repository | ||
uses: actions/checkout@v2 | ||
|
||
- name: Setup Java JDK | ||
uses: actions/setup-java@v1.4.3 | ||
with: | ||
java-version: 11 | ||
|
||
- name: Set Up CommandBox | ||
uses: elpete/setup-commandbox@v1.0.0 | ||
|
||
- name: Install dependencies | ||
run: | | ||
box install | ||
box install ${{ matrix.coldbox }} --noSave | ||
- name: Start server | ||
run: box server start cfengine=${{ matrix.cfengine }} --noSaveSettings | ||
|
||
- name: Run TestBox Tests | ||
run: box testbox run | ||
|
||
release: | ||
name: Semantic Release | ||
if: "!contains(github.event.head_commit.message, '__SEMANTIC RELEASE VERSION UPDATE__')" | ||
needs: tests | ||
runs-on: ubuntu-latest | ||
env: | ||
GA_COMMIT_MESSAGE: ${{ github.event.head_commit.message }} | ||
steps: | ||
- name: Checkout Repository | ||
uses: actions/checkout@v2 | ||
with: | ||
fetch-depth: 0 | ||
|
||
- name: Setup Java JDK | ||
uses: actions/setup-java@v1.4.3 | ||
with: | ||
java-version: 11 | ||
|
||
- name: Set Up CommandBox | ||
uses: elpete/setup-commandbox@v1.0.0 | ||
|
||
- name: Install and Configure Semantic Release | ||
run: | | ||
box install commandbox-semantic-release | ||
box config set endpoints.forgebox.APIToken=${{ secrets.FORGEBOX_TOKEN }} | ||
box config set modules.commandbox-semantic-release.plugins='{ "VerifyConditions": "GitHubActionsConditionsVerifier@commandbox-semantic-release", "FetchLastRelease": "ForgeBoxReleaseFetcher@commandbox-semantic-release", "RetrieveCommits": "JGitCommitsRetriever@commandbox-semantic-release", "ParseCommit": "ConventionalChangelogParser@commandbox-semantic-release", "FilterCommits": "DefaultCommitFilterer@commandbox-semantic-release", "AnalyzeCommits": "DefaultCommitAnalyzer@commandbox-semantic-release", "VerifyRelease": "NullReleaseVerifier@commandbox-semantic-release", "GenerateNotes": "GitHubMarkdownNotesGenerator@commandbox-semantic-release", "UpdateChangelog": "FileAppendChangelogUpdater@commandbox-semantic-release", "CommitArtifacts": "NullArtifactsCommitter@commandbox-semantic-release", "PublishRelease": "ForgeBoxReleasePublisher@commandbox-semantic-release", "PublicizeRelease": "GitHubReleasePublicizer@commandbox-semantic-release" }' | ||
# - name: Run Semantic Release | ||
# env: | ||
# GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
# run: box semantic-release --prerelease |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,71 @@ | ||
on: | ||
push: | ||
branches: | ||
- main | ||
- master | ||
|
||
jobs: | ||
tests: | ||
name: Tests | ||
if: "!contains(github.event.head_commit.message, '__SEMANTIC RELEASE VERSION UPDATE__')" | ||
runs-on: ubuntu-latest | ||
strategy: | ||
fail-fast: true | ||
matrix: | ||
cfengine: ["lucee@5", "adobe@2016", "adobe@2018"] | ||
coldbox: ["coldbox@5", "coldbox@6"] | ||
steps: | ||
- name: Checkout Repository | ||
uses: actions/checkout@v2 | ||
|
||
- name: Setup Java JDK | ||
uses: actions/setup-java@v1.4.3 | ||
with: | ||
java-version: 11 | ||
|
||
- name: Set Up CommandBox | ||
uses: elpete/setup-commandbox@v1.0.0 | ||
|
||
- name: Install dependencies | ||
run: | | ||
box install | ||
box install ${{ matrix.coldbox }} --noSave | ||
- name: Start server | ||
run: box server start cfengine=${{ matrix.cfengine }} --noSaveSettings | ||
|
||
- name: Run TestBox Tests | ||
run: box testbox run | ||
|
||
release: | ||
name: Semantic Release | ||
if: "!contains(github.event.head_commit.message, '__SEMANTIC RELEASE VERSION UPDATE__')" | ||
needs: tests | ||
runs-on: ubuntu-latest | ||
env: | ||
GA_COMMIT_MESSAGE: ${{ github.event.head_commit.message }} | ||
steps: | ||
- name: Checkout Repository | ||
uses: actions/checkout@v2 | ||
with: | ||
fetch-depth: 0 | ||
|
||
- name: Setup Java JDK | ||
uses: actions/setup-java@v1.4.3 | ||
with: | ||
java-version: 11 | ||
|
||
- name: Set Up CommandBox | ||
uses: elpete/setup-commandbox@v1.0.0 | ||
|
||
- name: Install and Configure Semantic Release | ||
run: | | ||
box install commandbox-semantic-release | ||
box config set endpoints.forgebox.APIToken=${{ secrets.FORGEBOX_TOKEN }} | ||
box config set modules.commandbox-semantic-release.targetBranch=main | ||
box config set modules.commandbox-semantic-release.plugins='{ "VerifyConditions": "GitHubActionsConditionsVerifier@commandbox-semantic-release", "FetchLastRelease": "ForgeBoxReleaseFetcher@commandbox-semantic-release", "RetrieveCommits": "JGitCommitsRetriever@commandbox-semantic-release", "ParseCommit": "ConventionalChangelogParser@commandbox-semantic-release", "FilterCommits": "DefaultCommitFilterer@commandbox-semantic-release", "AnalyzeCommits": "DefaultCommitAnalyzer@commandbox-semantic-release", "VerifyRelease": "NullReleaseVerifier@commandbox-semantic-release", "GenerateNotes": "GitHubMarkdownNotesGenerator@commandbox-semantic-release", "UpdateChangelog": "FileAppendChangelogUpdater@commandbox-semantic-release", "CommitArtifacts": "NullArtifactsCommitter@commandbox-semantic-release", "PublishRelease": "ForgeBoxReleasePublisher@commandbox-semantic-release", "PublicizeRelease": "GitHubReleasePublicizer@commandbox-semantic-release" }' | ||
- name: Run Semantic Release | ||
env: | ||
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
run: box semantic-release |
This file was deleted.
Oops, something went wrong.