Skip to content

Commit 4783cf7

Browse files
committed
run test on push
1 parent cee4db9 commit 4783cf7

1 file changed

Lines changed: 24 additions & 0 deletions

File tree

.github/workflows/stage-1-commit.yaml

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,30 @@ on:
4040
type: string
4141

4242
jobs:
43+
test-contract:
44+
name: "Test contracts (provider)"
45+
if: needs.check-event-schemas-version-change.outputs.version_changed == 'true'
46+
runs-on: ubuntu-latest
47+
permissions:
48+
contents: read
49+
packages: read
50+
steps:
51+
- name: "Checkout code"
52+
uses: actions/checkout@v5.0.0
53+
- name: Setup NodeJS
54+
uses: actions/setup-node@v4
55+
with:
56+
node-version: ${{ inputs.nodejs_version }}
57+
registry-url: 'https://npm.pkg.github.com'
58+
- name: "Install dependencies"
59+
env:
60+
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
61+
run: npm ci
62+
- name: "Run provider contract tests"
63+
run: make test-contract
64+
env:
65+
GITHUB_PACKAGES_TOKEN: ${{ secrets.GITHUB_TOKEN }}
66+
4367
scan-secrets:
4468
name: "Scan secrets"
4569
runs-on: ubuntu-latest

0 commit comments

Comments
 (0)