@@ -11,7 +11,7 @@ permissions:
11
11
12
12
jobs :
13
13
integration-linux :
14
- name : " Integration Tests"
14
+ name : " Integration Tests (Linux) "
15
15
runs-on : ubuntu-22.04
16
16
env :
17
17
HEROKU_API_KEY : ${{ secrets.HEROKU_API_KEY }}
42
42
working-directory : " integration-test"
43
43
run : " cargo test"
44
44
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 "[email protected] "
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
+
45
86
maven :
46
87
name : " Execute build, run tests (Java ${{ matrix.java-version }})"
47
88
runs-on : ubuntu-22.04
0 commit comments