|
4 | 4 | push: |
5 | 5 | workflow_dispatch: |
6 | 6 |
|
7 | | -env: |
8 | | - PACT_BROKER_BASE_URL: https://test.pactflow.io |
9 | | - PACT_BROKER_HOST: test.pactflow.io |
10 | | - PACT_BROKER_TOKEN: ${{ secrets.PACTFLOW_TOKEN_FOR_CI_CD_WORKSHOP }} |
11 | | - PACT_BROKER_PUBLISH_VERIFICATION_RESULTS: true |
12 | | - GIT_COMMIT: ${{ github.sha }} |
13 | | - GITHUB_REF: ${{ github.ref }} |
14 | | - SEND_TEST_EVENTS: false |
| 7 | +# env: |
| 8 | +# PACT_BROKER_BASE_URL: https://test.pactflow.io |
| 9 | +# PACT_BROKER_HOST: test.pactflow.io |
| 10 | +# PACT_BROKER_TOKEN: ${{ secrets.PACTFLOW_TOKEN_FOR_CI_CD_WORKSHOP }} |
| 11 | +# PACT_BROKER_PUBLISH_VERIFICATION_RESULTS: true |
| 12 | +# GIT_COMMIT: ${{ github.sha }} |
| 13 | +# GITHUB_REF: ${{ github.ref }} |
| 14 | +# SEND_TEST_EVENTS: false |
15 | 15 |
|
16 | 16 | jobs: |
17 | | - test: |
18 | | - runs-on: ubuntu-latest |
19 | | - steps: |
20 | | - - uses: actions/checkout@v4 |
21 | | - - uses: actions/setup-go@v5 |
22 | | - with: |
23 | | - go-version: '^1.22' |
24 | | - - name: install pact-go shared libraries |
25 | | - run: make install |
26 | | - - name: Test |
27 | | - run: GIT_BRANCH=${GITHUB_REF:11} make test |
| 17 | + # test: |
| 18 | + # runs-on: ubuntu-latest |
| 19 | + # steps: |
| 20 | + # - uses: actions/checkout@v4 |
| 21 | + # - uses: actions/setup-go@v5 |
| 22 | + # with: |
| 23 | + # go-version: '^1.22' |
| 24 | + # - name: install pact-go shared libraries |
| 25 | + # run: make install |
| 26 | + # - name: Test |
| 27 | + # run: GIT_BRANCH=${GITHUB_REF:11} make test |
28 | 28 |
|
29 | | - # Runs on branches as well, so we know the status of our PRs |
30 | | - can-i-deploy: |
31 | | - runs-on: ubuntu-latest |
32 | | - needs: test |
33 | | - steps: |
34 | | - - uses: actions/checkout@v4 |
35 | | - - run: docker pull pactfoundation/pact-cli:latest |
36 | | - - name: Can I deploy? |
37 | | - run: GIT_BRANCH=${GITHUB_REF:11} make can_i_deploy |
| 29 | + # # Runs on branches as well, so we know the status of our PRs |
| 30 | + # can-i-deploy: |
| 31 | + # runs-on: ubuntu-latest |
| 32 | + # needs: test |
| 33 | + # steps: |
| 34 | + # - uses: actions/checkout@v4 |
| 35 | + # - run: docker pull pactfoundation/pact-cli:latest |
| 36 | + # - name: Can I deploy? |
| 37 | + # run: GIT_BRANCH=${GITHUB_REF:11} make can_i_deploy |
38 | 38 |
|
39 | | - # Only deploy from master |
40 | | - deploy: |
41 | | - runs-on: ubuntu-latest |
42 | | - needs: can-i-deploy |
43 | | - steps: |
44 | | - - uses: actions/checkout@v4 |
45 | | - - run: docker pull pactfoundation/pact-cli:latest |
46 | | - - name: Deploy |
47 | | - run: GIT_BRANCH=${GITHUB_REF:11} make deploy |
48 | | - if: github.ref == 'refs/heads/master' |
| 39 | + # # Only deploy from master |
| 40 | + # deploy: |
| 41 | + # runs-on: ubuntu-latest |
| 42 | + # needs: can-i-deploy |
| 43 | + # steps: |
| 44 | + # - uses: actions/checkout@v4 |
| 45 | + # - run: docker pull pactfoundation/pact-cli:latest |
| 46 | + # - name: Deploy |
| 47 | + # run: GIT_BRANCH=${GITHUB_REF:11} make deploy |
| 48 | + # if: github.ref == 'refs/heads/master' |
49 | 49 |
|
50 | 50 | test-containers: |
51 | | - continue-on-error: ${{ matrix.experimental }} |
52 | 51 | runs-on: ${{ matrix.os }} |
53 | | - name: ${{ matrix.os }}-${{ matrix.variant }}-${{ matrix.go-version }}-test-container |
| 52 | + name: ${{ matrix.os }}-${{ matrix.variant }}-${{ matrix.go-version }}-${{ matrix.cgo }}-${{ matrix.tags }}-test-container |
54 | 53 | strategy: |
55 | 54 | fail-fast: false |
56 | 55 | matrix: |
57 | 56 | os: [ubuntu-latest, ubuntu-24.04-arm] |
58 | 57 | go-version: ["1.22", "1.23"] |
59 | 58 | tags: [libpact_cgo,pact_go] |
60 | 59 | cgo: [0,1] |
61 | | - variant: [debian] |
62 | | - experimental: [false] |
63 | | - include: |
64 | | - - variant: alpine |
65 | | - go-version: 1.22 |
66 | | - experimental: true |
67 | | - os: ubuntu-latest |
68 | | - - variant: alpine |
69 | | - go-version: 1.23 |
70 | | - experimental: true |
71 | | - os: ubuntu-latest |
72 | | - - variant: alpine |
73 | | - go-version: 1.22 |
74 | | - experimental: true |
75 | | - os: ubuntu-24.04-arm |
76 | | - - variant: alpine |
77 | | - go-version: 1.23 |
78 | | - experimental: true |
79 | | - os: ubuntu-24.04-arm |
| 60 | + variant: [debian,alpine] |
80 | 61 | exclude: |
81 | 62 | - cgo: 0 |
82 | 63 | tags: pact_go |
|
0 commit comments