diff --git a/.github/workflows/test-pull-request.yaml b/.github/workflows/test-pull-request.yaml new file mode 100644 index 00000000..6dde6116 --- /dev/null +++ b/.github/workflows/test-pull-request.yaml @@ -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 \ No newline at end of file