@@ -11,7 +11,7 @@ permissions:
1111
1212jobs :
1313 integration-linux :
14- name : " Integration Tests"
14+ name : " Integration Tests (Linux) "
1515 runs-on : ubuntu-22.04
1616 env :
1717 HEROKU_API_KEY : ${{ secrets.HEROKU_API_KEY }}
4242 working-directory : " integration-test"
4343 run : " cargo test"
4444
45+ integration-windows :
46+ name : " Integration Tests (Windows)"
47+ runs-on : windows-latest
48+ env :
49+ HEROKU_API_KEY : ${{ secrets.HEROKU_API_KEY }}
50+ HEROKU_API_USER : ${{ secrets.HEROKU_API_USER }}
51+ steps :
52+ - uses : actions/checkout@v4
53+ - uses : actions/setup-java@v3
54+ with :
55+ distribution : zulu
56+ java-version : " 21"
57+ - name : Setup Git
58+ run : |
59+ git config --global user.email "example@example.com"
60+ git config --global user.name "Example"
61+ - name : Update Rust toolchain
62+ run : rustup update
63+ - name : Install Heroku CLI
64+ run : |
65+ curl -O https://cli-assets.heroku.com/channels/stable/heroku-win32-x64.tar.gz
66+ tar -xzf heroku-win32-x64.tar.gz
67+ echo "${{ github.workspace }}/heroku/bin/" | Out-File -FilePath $env:GITHUB_PATH -Append
68+ - name : Package heroku-deploy-standalone
69+ run : " ./mvnw --batch-mode package"
70+ - run : |
71+ 7z x D:\a\heroku-maven-plugin\heroku-maven-plugin\heroku-deploy-standalone\target\heroku-deploy-standalone.jar
72+ cd D:\a\heroku-maven-plugin\heroku-maven-plugin\heroku-deploy-standalone\target
73+ tree /f /a
74+ - name : Package integration test fixtures
75+ working-directory : " integration-test/fixtures/war-app"
76+ run : " ./mvnw --batch-mode package"
77+ - name : Package integration test fixtures
78+ working-directory : " integration-test/fixtures/jar-app"
79+ run : " ./mvnw --batch-mode package"
80+ - name : Run integration tests
81+ working-directory : " integration-test"
82+ env :
83+ RUST_BACKTRACE : 1
84+ run : " cargo test"
85+
4586 maven :
4687 name : " Execute build, run tests (Java ${{ matrix.java-version }})"
4788 runs-on : ubuntu-22.04
0 commit comments