Skip to content

Commit 095c986

Browse files
committed
Add CI for triggering full testsz with protocol.
1 parent bb4cacf commit 095c986

1 file changed

Lines changed: 53 additions & 2 deletions

File tree

.github/workflows/ci.yml

Lines changed: 53 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ permissions:
1212
id-token: write
1313

1414
jobs:
15-
ci:
15+
test:
1616
runs-on: ubuntu-latest
1717
steps:
1818
- name: Checkout
@@ -36,8 +36,59 @@ jobs:
3636
- name: Run Tests
3737
run: npm run test
3838

39+
faas:
40+
name: MetaCall FaaS Dispatch
41+
needs: test
42+
runs-on: ubuntu-latest
43+
steps:
44+
- name: MetaCall FaaS Workflow Dispatch
45+
uses: convictional/trigger-workflow-and-wait@v1.6.1
46+
with:
47+
owner: metacall
48+
repo: faas
49+
github_token: ${{ secrets.G_PERSONAL_ACCESS_TOKEN }}
50+
workflow_file_name: ci.yml
51+
wait_workflow: true
52+
client_payload: '{"ref": "${{ github.head_ref || github.ref_name }}"}'
53+
ref: master
54+
55+
deploy:
56+
name: MetaCall Deploy Dispatch
57+
needs: test
58+
runs-on: ubuntu-latest
59+
steps:
60+
- name: MetaCall Deploy Workflow Dispatch
61+
uses: convictional/trigger-workflow-and-wait@v1.6.1
62+
with:
63+
owner: metacall
64+
repo: deploy
65+
github_token: ${{ secrets.G_PERSONAL_ACCESS_TOKEN }}
66+
workflow_file_name: ci.yml
67+
wait_workflow: true
68+
client_payload: '{"ref": "${{ github.head_ref || github.ref_name }}"}'
69+
ref: master
70+
71+
publish:
72+
runs-on: ubuntu-latest
73+
if: startsWith(github.ref, 'refs/tags/')
74+
needs: [faas, deploy]
75+
steps:
76+
- name: Checkout
77+
uses: actions/checkout@v4
78+
79+
- name: Setup NodeJS
80+
uses: actions/setup-node@v4
81+
with:
82+
node-version: 24
83+
registry-url: https://registry.npmjs.org
84+
85+
- name: Installing Dependencies
86+
run: npm i
87+
88+
- name: Build
89+
run: npm run build
90+
3991
- name: Publish NPM
40-
if: startsWith(github.ref, 'refs/tags/')
4192
run: |
4293
unset NODE_AUTH_TOKEN
4394
npm publish --provenance

0 commit comments

Comments
 (0)