-
-
Notifications
You must be signed in to change notification settings - Fork 101
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Extract benchmark job to a separate workflow, to stop marking build a…
…s constantly failed
- Loading branch information
1 parent
37c5c14
commit 78db989
Showing
3 changed files
with
56 additions
and
45 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,52 @@ | ||
name: CI build | ||
|
||
on: | ||
push: | ||
branches: [ master ] | ||
tags: [ '*' ] | ||
pull_request: | ||
branches: [ master ] | ||
types: [ opened, reopened, labeled, synchronize ] | ||
|
||
jobs: | ||
check-formatting: | ||
|
||
runs-on: ubuntu-latest | ||
if: github.event_name == 'push' || github.event.action != 'labeled' # run for 'opened', 'reopened' and 'synchronize' | ||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
with: | ||
fetch-depth: 0 | ||
- uses: coursier/setup-action@v1.3.0 | ||
with: | ||
apps: scalafmt | ||
- name: Check code and docs formatting | ||
run: scalafmt --check | ||
|
||
build: | ||
|
||
runs-on: ubuntu-latest | ||
if: github.event_name == 'push' || github.event.action != 'labeled' # run for 'opened', 'reopened' and 'synchronize' | ||
|
||
strategy: | ||
matrix: | ||
scala: ["2_12", "2_13", "3"] | ||
platform: ["jvm", "js", "native"] | ||
jvm: ['temurin:1.8.0-392', 'temurin:1.21.0.1'] | ||
fail-fast: false | ||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
with: | ||
fetch-depth: 0 | ||
- uses: coursier/cache-action@v6 | ||
- uses: coursier/setup-action@v1.3.0 | ||
with: | ||
jvm: ${{ matrix.jvm }} | ||
apps: sbt | ||
- name: Clean, compile, test, generate coverage report, check MiMa | ||
run: sbt ci-${{ matrix.platform }}-${{ matrix.scala }} | ||
- uses: codecov/codecov-action@v3 | ||
with: | ||
token: ${{ secrets.CODECOV_TOKEN }} |
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