Skip to content

fix(deps): update dependency axios to v1.8.1 #164

fix(deps): update dependency axios to v1.8.1

fix(deps): update dependency axios to v1.8.1 #164

Workflow file for this run

name: Build
on:
push:
workflow_dispatch:
env:
PACT_BROKER_BASE_URL: https://testdemo.pactflow.io
PACT_BROKER_TOKEN: ${{ secrets.PACTFLOW_TOKEN_FOR_CI_CD_WORKSHOP }}
REACT_APP_API_BASE_URL: http://localhost:8080
GIT_SHA: ${{ github.sha }}
GIT_REF: ${{ github.ref }}
PACT_URL: https://testdemo.pactflow.io/pacts/provider/pactflow-example-provider/consumer/pactflow-example-consumer-webhookless/version/${{ github.sha }}
jobs:
Test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
- uses: actions/setup-node@1d0ff469b7ec7b3cb9d8673fde0c81c44821de2a # v4
with:
node-version: '18'
- name: Install
run: npm i
- name: Run tests
run: make test
- name: Publish pacts
run: GIT_BRANCH=${GITHUB_REF:11} make publish_pacts
Verify:
runs-on: ubuntu-latest
needs: Test
continue-on-error: true
steps:
- run: docker pull pactfoundation/pact-cli:latest
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
- name: Check if verification exists
# Raises an error and does not continue if the verification already exists
# Because continue-on-error is set to true, this will not fail the overall build however
run: "! make check_if_successfull_verification_exists"
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
with:
repository: pactflow/example-provider
- uses: actions/setup-node@1d0ff469b7ec7b3cb9d8673fde0c81c44821de2a # v4
with:
node-version: '18'
- name: Install
run: npm i
- name: Verify
run: GIT_BRANCH=${GITHUB_REF:11} make ci_webhook
env:
PACT_BROKER_PUBLISH_VERIFICATION_RESULTS: true
GIT_BRANCH: master
# Could also check out and verify with the production version of the provider here in parallel.
# To get the prod version of the provider, do:
# pact-broker describe-version --pacticipant pactflow-example-provider --latest prod --output json | jq '.number' -r
# This is still required, as the verification done in the previous step is done by
# the latest version of the provider, not the production version.
Can-I-Deploy:
runs-on: ubuntu-latest
needs: Verify
steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
- run: docker pull pactfoundation/pact-cli:latest
- name: Can I deploy?
run: make can_i_deploy
# Only deploy from master
Deploy:
if: github.ref == 'refs/heads/master'
runs-on: ubuntu-latest
needs: Can-I-Deploy
steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
- run: docker pull pactfoundation/pact-cli:latest
- name: Deploy
run: GIT_BRANCH=${GITHUB_REF:11} make deploy