Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ci: break CI actions into smaller pieces #1706

Merged
merged 2 commits into from
Apr 14, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
67 changes: 49 additions & 18 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ on:
pull_request:

jobs:
scalafmt:
scalafmt:
name: Formatting
runs-on: ubuntu-latest
steps:
Expand All @@ -19,7 +19,7 @@ jobs:
java-version: [email protected]
- name: Check formatting
run: ./bin/scalafmt --test
integrations:
integrations:
name: Build integrations tests
runs-on: ${{ matrix.os }}
strategy:
Expand Down Expand Up @@ -51,6 +51,52 @@ jobs:
"sbtBloop10Shaded/publishLocal" \
"sbtBloop10/scripted"
shell: bash
bridges:
name: Test platform bridges
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, windows-latest, macOS-latest]
jdk: [[email protected]]
steps:
- uses: actions/checkout@v2
with:
submodules: true
- uses: olafurpg/setup-scala@v13
with:
java-version: ${{ matrix.jdk }}
- name: Tests
run: |
./bin/sbt-ci.sh \
"jsBridge06/publishLocal" \
"jsBridge1/publishLocal" \
"jsBridge06/test" \
"jsBridge1/test" \
shell: bash

launcher:
name: Launcher tests
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, windows-latest, macOS-latest]
jdk: [[email protected]]
steps:
- uses: actions/checkout@v2
with:
submodules: true
- uses: olafurpg/setup-scala@v13
with:
java-version: ${{ matrix.jdk }}
- name: Tests
run: |
echo $JAVA_HOME
which gu && gu install native-image
./bin/sbt-ci.sh "install" "launcherTest/test"
shell: bash

test:
runs-on: ${{ matrix.os }}
strategy:
Expand Down Expand Up @@ -92,31 +138,17 @@ jobs:
run: |
./bin/sbt-ci.sh \
"frontend/test:compile" \
"sbtBloop013/compile" \
"sbtBloop10/compile" \
"mavenBloop/compile" \
"backend/test" \
"docs/compile" \
"jsBridge06/publishLocal" \
"jsBridge1/publishLocal" \
"frontend/testOnly bloop.ScalaVersionsSpec" \
"frontend/testOnly -bloop.ScalaVersionsSpec" \
"jsBridge06/test" \
"jsBridge1/test" \
"frontend/runMain bloop.util.CommandsDocGenerator --test" \
"frontend/runMain bloop.util.CommandsDocGenerator --out ../docs/cli/reference.md"
shell: bash
- name: Check docs are up-to-date
run: |
./bin/check-good-practices.sh
shell: bash
- name: Run launcher tests
if: matrix.jdk == '[email protected]'
run: |
echo $JAVA_HOME
which gu && gu install native-image
./bin/sbt-ci.sh "install" "launcherTest/test"
shell: bash

publish-binaries:
name: Publish binaries for ${{ matrix.os }}
Expand Down Expand Up @@ -183,7 +215,7 @@ jobs:
uses: al-cheb/[email protected]
- name: Refresh Pagefile
run: |
(Get-CimInstance Win32_PageFileUsage).AllocatedBaseSize
(Get-CimInstance Win32_PageFileUsage).AllocatedBaseSize
- uses: actions/checkout@v3
with:
submodules: true
Expand Down Expand Up @@ -220,7 +252,6 @@ jobs:
with:
name: bloop-artifacts
path: bloop-artifacts/${{ matrix.artifact }}


release:
name: Release version on ${{ matrix.os }}
Expand Down