|
57 | 57 | - name: Run Hatchet integration tests
|
58 | 58 | run: bundle exec parallel_split_test test/spec/
|
59 | 59 |
|
60 |
| - buildpack-testrunner: |
61 |
| - runs-on: ubuntu-22.04 |
62 |
| - needs: lint |
63 |
| - env: |
64 |
| - SHUNIT_HOME: /tmp/shunit2-2.1.6 |
65 |
| - # Note the missing STACK environment variable here. This works since there is a default value in the buildpack |
66 |
| - # source. I ported this as-is from the Travis config. Given we're trying to get rid of testrunner entirely, |
67 |
| - # it will stay like this. If we, for some reason, decide to keep testrunner, we should look into a fixed STACK env var. |
68 |
| - steps: |
69 |
| - - uses: actions/checkout@v4 |
70 |
| - - uses: actions/setup-java@v4 |
71 |
| - with: |
72 |
| - distribution: zulu |
73 |
| - java-version: 8 |
74 |
| - - name: Download and unpack shunit 2.1.6 |
75 |
| - run: curl -sSf --retry 3 --retry-connrefused --connect-timeout 5 https://storage.googleapis.com/google-code-archive-downloads/v2/code.google.com/shunit2/shunit2-2.1.6.tgz | tar xz -C /tmp/ |
76 |
| - - name: Clone heroku-buildpack-testrunner |
77 |
| - run: git clone https://github.com/heroku/heroku-buildpack-testrunner.git /tmp/testrunner |
78 |
| - - name: Apply heroku-buildpack-testrunner patches to enforce bash shell |
79 |
| - run: | |
80 |
| - cd /tmp/testrunner |
81 |
| - git apply <<'EOF' |
82 |
| - diff --git a/bin/run b/bin/run |
83 |
| - index 0d5b790..a0ff25c 100755 |
84 |
| - --- a/bin/run |
85 |
| - +++ b/bin/run |
86 |
| - @@ -101,7 +101,7 @@ for bp in ${@}; do |
87 |
| - suite_start_time="$(date +%s)" |
88 |
| - |
89 |
| - echo " TEST SUITE: $(basename ${f})" |
90 |
| - - ${SHUNIT_HOME?"'SHUNIT_HOME' environment variable must be set"}/src/shunit2 ${f} | indent |
91 |
| - + /bin/bash ${SHUNIT_HOME?"'SHUNIT_HOME' environment variable must be set"}/src/shunit2 ${f} | indent |
92 |
| - exit_code=$(max ${exit_code} ${PIPESTATUS[0]}) |
93 |
| - |
94 |
| - suite_end_time="$(date +%s)" |
95 |
| - |
96 |
| - EOF |
97 |
| - - name: Execute buildpack-testrunner |
98 |
| - run: /tmp/testrunner/bin/run . |
99 |
| - |
100 | 60 | unit-tests:
|
101 | 61 | name: "Unit Tests (${{ matrix.stack }})"
|
102 | 62 | runs-on: ubuntu-22.04
|
|
111 | 71 | stack: ["heroku-20", "heroku-22", "heroku-24"]
|
112 | 72 | steps:
|
113 | 73 | - uses: actions/checkout@v4
|
114 |
| - - run: test/v2 |
115 | 74 | - run: test/jdbc.sh
|
116 | 75 |
|
117 | 76 | container-test:
|
|
0 commit comments