-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update ci split off release bits (#266)
* Update ci split off release bits - Release CI split-off from validation bit - Release only on pushing a release tag - No snapshot releases * Review feedback * Simplify Ci by using an OS matrix * Add line ending preservation to scalafmt - Should resolve `scalafmtCheckAll` issue on Windows * Debug * Formatting... * Debig * ensuring the cmt.conf file is created from scratch with default values during testing * removed the now-unnecessary printlns and added comment to the configuration spec fix (so it doesn't get removed accidentally in future) --------- Co-authored-by: thinkmorestupidless <[email protected]>
- Loading branch information
1 parent
a8a84e1
commit 409f0a0
Showing
7 changed files
with
53 additions
and
108 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
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,36 @@ | ||
name: CI | ||
on: | ||
push: | ||
branches: [ main ] | ||
|
||
pull_request: | ||
|
||
permissions: | ||
contents: write | ||
|
||
jobs: | ||
test: | ||
runs-on: ${{ matrix.os }} | ||
strategy: | ||
matrix: | ||
os: [ 'ubuntu-latest', 'windows-latest' ] | ||
|
||
steps: | ||
- name: Checkout Course Management Tools Repo | ||
uses: actions/checkout@v3 | ||
with: | ||
fetch-depth: 0 | ||
|
||
- name: Set up JDK 11 | ||
uses: actions/setup-java@v3 | ||
with: | ||
java-version: 11 | ||
distribution: adopt-hotspot | ||
cache: 'sbt' | ||
|
||
- name: Check code formatting | ||
run: sbt "scalafmtCheckAll ; scalafmtSbtCheck" | ||
|
||
- name: Run tests | ||
shell: bash | ||
run: sbt test |
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 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 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 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 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