Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
35 changes: 35 additions & 0 deletions .github/workflows/test-pull-request.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
# The following workflow will run when a pull request is opened, synched or reopened
# It's intent is to run a build of the package against the PR to ensure that it passes a code build check

name: test-build
on: pull_request

jobs:

# This job will checkout the repo, install dependencies and then build the frontend package
test-build-frontend-and-lib:
runs-on: ubuntu-latest

# set out working directory
defaults:
run:
working-directory: ./

# checkout, install node and run our npm commands to check code builds
steps:

- name: Checkout repo
uses: actions/checkout@v3

- name: Setup node
uses: actions/setup-node@v3
with:
node-version: "16.x"

# install deps for frontend and library and build both
- name: Install library and frontend deps and build
working-directory: ./examples/typescript
id: npm
run: |
npm ci
npm run build-all