Skip to content

Commit a4a96b4

Browse files
authored
Added test harness (#121)
1 parent cc3d9bd commit a4a96b4

File tree

13 files changed

+1715
-62
lines changed

13 files changed

+1715
-62
lines changed

.github/workflows/ci.yml

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
name: CI
2+
3+
on:
4+
push:
5+
branches: ["main"]
6+
pull_request:
7+
8+
permissions:
9+
contents: read
10+
11+
jobs:
12+
functional-test:
13+
runs-on: ubuntu-22.04
14+
container:
15+
image: heroku/heroku:${{ matrix.stack_number }}-build
16+
strategy:
17+
matrix:
18+
stack_number: ["20", "22"]
19+
env:
20+
STACK: heroku-${{ matrix.stack_number }}
21+
steps:
22+
- name: Checkout
23+
uses: actions/checkout@v4
24+
- name: Functional tests on heroku:${{ matrix.stack_number }}-build
25+
run: test/run

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
11
.anvil
2+
.idea

Makefile

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
test: heroku-22-build heroku-20-build
2+
3+
heroku-22-build:
4+
@echo "Running tests in docker (heroku-22-build)..."
5+
@docker run -v $(shell pwd):/buildpack:ro --rm -it -e "STACK=heroku-22" heroku/heroku:22-build bash -c 'cp -r /buildpack /buildpack_test; cd /buildpack_test/; test/run;'
6+
@echo ""
7+
8+
heroku-20-build:
9+
@echo "Running tests in docker (heroku-20-build)..."
10+
@docker run -v $(shell pwd):/buildpack:ro --rm -it -e "STACK=heroku-20" heroku/heroku:20-build bash -c 'cp -r /buildpack /buildpack_test; cd /buildpack_test/; test/run;'
11+
@echo ""

test/compile_test.sh

Lines changed: 0 additions & 59 deletions
This file was deleted.

test/fixtures/Aptfile/Aptfile

Lines changed: 0 additions & 3 deletions
This file was deleted.
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
https://github.com/wkhtmltopdf/packaging/releases/download/0.12.6-1/wkhtmltox_0.12.6-1.focal_amd64.deb
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
https://github.com/wkhtmltopdf/packaging/releases/download/0.12.6.1-2/wkhtmltox_0.12.6.1-2.jammy_amd64.deb
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
:repo:deb http://us.archive.ubuntu.com/ubuntu/ focal multiverse
2+
fasttracker2
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
:repo:deb http://us.archive.ubuntu.com/ubuntu/ jammy multiverse
2+
fasttracker2

test/fixtures/package-names/Aptfile

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
# single package
2+
xmlsec1
3+
4+
# globbed package
5+
mysql-client-*

0 commit comments

Comments
 (0)