Starter github workflow to build connect examples #2
This file contains 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: test-connect-sdk-examples | |
permissions: | |
packages: read | |
contents: read | |
pull-requests: write | |
issues: write | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
ENVIRONMENT: test | |
on: | |
workflow_dispatch: | |
pull_request: | |
paths: | |
- "connect/sdk/**" | |
jobs: | |
test-javascript-example: | |
runs-on: ubuntu-latest | |
defaults: | |
run: | |
working-directory: ./connect/sdk/javascript-example | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: actions/setup-node@v3 | |
with: | |
node-version: "20.11.1" | |
- name: Install dependencies | |
run: yarn | |
- name: Build | |
run: yarn build | |
test-react-example: | |
runs-on: ubuntu-latest | |
defaults: | |
run: | |
working-directory: ./connect/sdk/react-example | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: actions/setup-node@v3 | |
with: | |
node-version: "20.11.1" | |
- name: Install dependencies | |
run: yarn | |
- name: Build | |
run: yarn build |