-
Notifications
You must be signed in to change notification settings - Fork 13
40 lines (31 loc) · 974 Bytes
/
test.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
name: Test
on: [push, pull_request, workflow_dispatch]
jobs:
test:
runs-on: "ubuntu-latest"
env:
DOCKER_IMAGE_ORG_AND_NAME: pactfoundation/pact-cli-tag-test
steps:
- uses: actions/checkout@v3
- name: Integration tests
run: script/test.sh
- name: Scan
run: script/scan.sh pactfoundation/pact-cli-tag-test
test-node:
runs-on: "ubuntu-latest"
strategy:
matrix:
node: [ 16, 18, 20 ]
steps:
- uses: actions/checkout@v3
- name: Login to Docker Hub
run: script/release-workflow/docker-login.sh
env:
DOCKER_HUB_USERNAME: ${{ secrets.DOCKER_HUB_USERNAME }}
DOCKER_HUB_TOKEN: ${{ secrets.DOCKER_HUB_TOKEN }}
- name: Integration tests
run: script/test-node.sh
env:
NODE_VERSION: ${{ matrix.node }}
- name: Scan
run: script/scan.sh pactfoundation/pact-cli-tag-test:latest-node${{ matrix.node }}