-
Notifications
You must be signed in to change notification settings - Fork 288
62 lines (60 loc) · 1.82 KB
/
compatibility.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
name: compatibility
on:
push:
paths-ignore:
- '**.md'
- 'resources/**'
- 'CODEOWNERS'
- 'LICENSE'
branches:
- main
- 'release/**'
pull_request:
paths-ignore:
- '**.md'
- 'resources/**'
- 'CODEOWNERS'
- 'LICENSE'
branches:
- main
- 'release/**'
jobs:
acceptance-combo:
strategy:
matrix:
pack_kind: [current, previous]
create_builder_kind: [current, previous]
lifecycle_kind: [current, previous]
exclude:
# For all previous versions these were tested prior to release
- pack_kind: previous
create_builder_kind: previous
lifecycle_kind: previous
# Previous versions of pack cannot create a builder with a newer version of lifecycle
- pack_kind: current
create_builder_kind: previous
lifecycle_kind: current
# Previous versions of pack cannot create a builder with a newer version of lifecycle
- pack_kind: previous
create_builder_kind: previous
lifecycle_kind: current
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up go
uses: actions/setup-go@v5
with:
check-latest: true
go-version-file: 'go.mod'
- name: Set up go env
run: |
echo "GOPATH=$(go env GOPATH)" >> $GITHUB_ENV
echo "$(go env GOPATH)/bin" >> $GITHUB_PATH
shell: bash
- name: Acceptance
env:
ACCEPTANCE_SUITE_CONFIG: '[{"pack": "${{ matrix.pack_kind }}", "pack_create_builder": "${{ matrix.create_builder_kind }}", "lifecycle": "${{ matrix.lifecycle_kind }}"}]'
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
make acceptance
docker network prune