-
Notifications
You must be signed in to change notification settings - Fork 45
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
2f966b8
commit 69a7ca1
Showing
2 changed files
with
58 additions
and
0 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,37 @@ | ||
name: CI Build | ||
on: | ||
pull_request: | ||
branches: [ 'master' ] | ||
|
||
jobs: | ||
build: | ||
name: CI Build on ${{ matrix.os }} | ||
runs-on: ${{ matrix.os }} | ||
timeout-minutes: 20 | ||
strategy: | ||
matrix: | ||
include: | ||
- os: ubuntu-latest | ||
- os: macos-latest | ||
- os: windows-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: coursier/setup-action@v1.2.0-M3 | ||
apps: sbtn | ||
- uses: coursier/cache-action@v6 | ||
|
||
- name: Build | ||
run: sbtn compile | ||
|
||
- uses: actions/cache@v3 | ||
with: | ||
path: | | ||
~/.cache/scalablytyped/tests/artifacts | ||
~/.cache/scalablytyped/test-artifacts | ||
key: ${{ runner.os }}-test-cache-v1 | ||
|
||
- name: Build and test | ||
run: sbtn test | ||
|
||
- name: scalafmt | ||
run: sbtn scalafmtCheck |
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,21 @@ | ||
# note that the proper release is made manually with the release script because it's | ||
# a heavy operation (builds all demo repos) | ||
# that's why we don't trigger on tag | ||
name: Release snapshot | ||
on: | ||
push: | ||
branches: [ 'master' ] | ||
jobs: | ||
release-snapshot: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: coursier/setup-action@v1.2.0-M3 | ||
apps: sbtn | ||
- uses: coursier/cache-action@v6 | ||
|
||
- name: Build native image (non-windows) | ||
run: sbtn test scalafmtCheck | ||
|
||
- name: publish snapshot | ||
run: sbt ci-release |