Skip to content

chore(deps): lock file maintenance #219

chore(deps): lock file maintenance

chore(deps): lock file maintenance #219

Workflow file for this run

name: Test & Upload to Pactflow
on:
push:
workflow_dispatch:
env:
PACT_BROKER_BASE_URL: https://testdemo.pactflow.io
PACT_BROKER_TOKEN: ${{ secrets.PACTFLOW_TOKEN_FOR_CI_CD_WORKSHOP }}
PACT_BROKER_PUBLISH_VERIFICATION_RESULTS: true
VERSION: ${{ github.sha }}
GITHUB_REF: ${{ github.ref }}
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5
- uses: actions/setup-node@2028fbc5c25fe9cf00d9f06a71cc4710d4507903 # v6
with:
node-version: 24
- name: 📦️ Install
run: npm i
- name: set reports folder permissions for soapui runner
run: chmod ugo+rwx project/reports
- name: 🧪 Test and upload to Pactflow 📈
run: BRANCH=${GITHUB_REF:11} make test_and_publish
# Runs on branches as well, so we know the status of our PRs
can-i-deploy:
runs-on: ubuntu-latest
needs: [test]
steps:
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5
- name: 🛂 Can I deploy?
run: BRANCH=${GITHUB_REF:11} make can_i_deploy
# Only deploy from master/main
deploy:
runs-on: ubuntu-latest
needs: [can-i-deploy]
steps:
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5
- name: 🚀 Deploy
run: BRANCH=${GITHUB_REF:11} make deploy
if: github.ref == 'refs/heads/master' || github.ref == 'refs/heads/main'