From 4c663a2faa170fe8d7bae580e10b6be31bca8f08 Mon Sep 17 00:00:00 2001 From: Kris Coleman Date: Tue, 20 Jun 2023 16:35:41 -0400 Subject: [PATCH] chore(web): implement node workflow to github workflows closes #60 allows us to build and test our web project from the monorepo as on changes to our trunk (`main`) Signed-off-by: Kris Coleman --- .github/workflows/web.yml | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 .github/workflows/web.yml diff --git a/.github/workflows/web.yml b/.github/workflows/web.yml new file mode 100644 index 00000000..e58dad11 --- /dev/null +++ b/.github/workflows/web.yml @@ -0,0 +1,31 @@ +# This workflow will do a clean installation of node dependencies, cache/restore them, build the source code and run tests across different versions of node +# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-nodejs + +name: web ci + +on: + push: + branches: [ "main" ] + pull_request: + branches: [ "main" ] + +jobs: + build: + + runs-on: ubuntu-latest + + strategy: + matrix: + node-version: [18.x] + # See supported Node.js release schedule at https://nodejs.org/en/about/releases/ + + steps: + - uses: actions/checkout@v3 + - name: Use Node.js ${{ matrix.node-version }} + uses: actions/setup-node@v3 + with: + node-version: ${{ matrix.node-version }} + cache: 'npm' + - run: npm ci + - run: npm run build:web --if-present + - run: npm run test:web