Skip to content

trigger platform tests on push #8

trigger platform tests on push

trigger platform tests on push #8

Workflow file for this run

name: Build Status
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
build:
strategy:
matrix:
node-version: [lts/*]
os: [ubuntu-latest, windows-latest, macos-latest]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v3
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
- run: npm install
- run: npm test
trigger_platform:
runs-on: ubuntu-latest
steps:
- name: trigger platform tests
run: |
curl -L -X POST \
-H "Accept: application/vnd.github+json" \
-H "Authorization: Bearer ${{ secrets.CANARY_DISPATCH_PAT }}" \
-H "X-GitHub-Api-Version: 2022-11-28" \
https://api.github.com/repos/holepunchto/pear/dispatches \
-d '{"event_type":"triggered-by-${{ github.event.repository.name }}-${{ github.ref_name }}"}'