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

Add Windows CI #233

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from
Draft
Show file tree
Hide file tree
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
43 changes: 42 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ permissions:

jobs:
integration-linux:
name: "Integration Tests"
name: "Integration Tests (Linux)"
runs-on: ubuntu-22.04
env:
HEROKU_API_KEY: ${{ secrets.HEROKU_API_KEY }}
Expand Down Expand Up @@ -42,6 +42,47 @@ jobs:
working-directory: "integration-test"
run: "cargo test"

integration-windows:
name: "Integration Tests (Windows)"
runs-on: windows-latest
env:
HEROKU_API_KEY: ${{ secrets.HEROKU_API_KEY }}
HEROKU_API_USER: ${{ secrets.HEROKU_API_USER }}
steps:
- uses: actions/checkout@v4
- uses: actions/setup-java@v3
with:
distribution: zulu
java-version: "21"
- name: Setup Git
run: |
git config --global user.email "[email protected]"
git config --global user.name "Example"
- name: Update Rust toolchain
run: rustup update
- name: Install Heroku CLI
run: |
curl -O https://cli-assets.heroku.com/channels/stable/heroku-win32-x64.tar.gz
tar -xzf heroku-win32-x64.tar.gz
echo "${{ github.workspace }}/heroku/bin/" | Out-File -FilePath $env:GITHUB_PATH -Append
- name: Package heroku-deploy-standalone
run: "./mvnw --batch-mode package"
- run: |
7z x D:\a\heroku-maven-plugin\heroku-maven-plugin\heroku-deploy-standalone\target\heroku-deploy-standalone.jar
cd D:\a\heroku-maven-plugin\heroku-maven-plugin\heroku-deploy-standalone\target
tree /f /a
- name: Package integration test fixtures
working-directory: "integration-test/fixtures/war-app"
run: "./mvnw --batch-mode package"
- name: Package integration test fixtures
working-directory: "integration-test/fixtures/jar-app"
run: "./mvnw --batch-mode package"
- name: Run integration tests
working-directory: "integration-test"
env:
RUST_BACKTRACE: 1
run: "cargo test"

maven:
name: "Execute build, run tests (Java ${{ matrix.java-version }})"
runs-on: ubuntu-22.04
Expand Down
Loading