-
Notifications
You must be signed in to change notification settings - Fork 28
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Add a new `test` Make target, that takes a `STACK_VERSION` argument instead of having hardcoded per-stack targets. - Add a new `compile` Make target, that allows viewing a single buildpack invocation to help when developing locally. - Add tests for cached builds (rebuilds). - Make the test runner more robust against errors. - Make CI use `make test` instead of manually running the test script. - Update the CI dependencies and apply some best practices.
- Loading branch information
Showing
3 changed files
with
55 additions
and
26 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,30 +1,31 @@ | ||
name: CI | ||
|
||
on: | ||
- push | ||
- pull_request | ||
push: | ||
# Avoid duplicate builds on PRs. | ||
branches: | ||
- main | ||
pull_request: | ||
|
||
jobs: | ||
permissions: | ||
contents: read | ||
|
||
jobs: | ||
shellcheck: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- run: sudo apt-get install shellcheck -y | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
- run: shellcheck -x bin/* | ||
- run: find . -name "*.sh" -exec shellcheck -x {} \; | ||
|
||
shunit2: | ||
test: | ||
runs-on: ubuntu-latest | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
stack: | ||
- name: heroku-20 | ||
image: heroku/heroku:20-build | ||
- name: heroku-22 | ||
image: heroku/heroku:22-build | ||
container: ${{ matrix.stack.image }} | ||
stack_version: ["20", "22"] | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- run: ./tests.sh | ||
env: | ||
STACK: ${{ matrix.stack.name }} | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
- run: make test STACK_VERSION='${{ matrix.stack_version }}' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters