ci: add updated versions in release workflow #112
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
name: Test | |
on: [push, pull_request, workflow_dispatch] | |
jobs: | |
test: | |
runs-on: "ubuntu-latest" | |
env: | |
DOCKER_IMAGE_ORG_AND_NAME: pactfoundation/pact-cli | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Integration tests | |
run: script/test.sh | |
- name: Scan | |
run: script/scan.sh pactfoundation/pact-cli | |
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:latest-node${{ matrix.node }} |