From 925c3207106c466d80a24f7ff78aad4edc3e9cd1 Mon Sep 17 00:00:00 2001 From: Brian Ward Date: Fri, 14 Jun 2024 20:33:18 +0000 Subject: [PATCH] Add minimal github action for yarn tests --- .github/workflows/tests.yml | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 .github/workflows/tests.yml diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml new file mode 100644 index 00000000..74ec0bbf --- /dev/null +++ b/.github/workflows/tests.yml @@ -0,0 +1,31 @@ +name: test stan-playground + +on: + pull_request: + branches: ['main'] + workflow_dispatch: + +permissions: + contents: read + +concurrency: + group: 'tests' + cancel-in-progress: true + +jobs: + frontend-tests: + name: yarn tests + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v4 + - name: Set up Node + uses: actions/setup-node@v4 + with: + node-version: 20 + cache: 'yarn' + cache-dependency-path: gui/yarn.lock + - name: Install dependencies + run: cd gui; yarn + - name: Build + run: cd gui; yarn test