chore(deps): update typescript-eslint monorepo to v8.31.0 #245
Workflow file for this run
This file contains hidden or 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: 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:3001 | |
VERSION: ${{ github.sha }} | |
GIT_REF: ${{ github.ref }} | |
PACT_PROVIDER: pactflow-example-bi-directional-provider-postman | |
PACTICIPANT: pactflow-example-bi-directional-consumer-playwright-js | |
jobs: | |
test: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4 | |
- uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4 | |
with: | |
node-version: "22" | |
- name: Install | |
run: npm i | |
- name: Install Playwright Browsers | |
run: npx playwright install --with-deps | |
- name: Test | |
run: make test | |
- name: Publish pacts | |
run: BRANCH=${GIT_REF:11} make publish_pacts | |
# 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@11bd71901bbe5b1630ceea73d27597364c9af683 # v4 | |
- name: Can I deploy? | |
run: BRANCH=${GIT_REF:11} make can_i_deploy | |
# Only deploy from main | |
deploy: | |
runs-on: ubuntu-latest | |
needs: can-i-deploy | |
steps: | |
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4 | |
- name: Deploy | |
run: BRANCH=${GIT_REF:11} make deploy | |
# if: github.ref == 'refs/heads/main' # note this is set in our Makefile |