From c1de5061f17edc4bb36e4543685050b97d4d45fb Mon Sep 17 00:00:00 2001 From: David Stockley Date: Sun, 19 May 2024 18:36:05 +0100 Subject: [PATCH] ci: add test github action --- .github/workflows/test.yml | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 .github/workflows/test.yml diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml new file mode 100644 index 0000000..5424939 --- /dev/null +++ b/.github/workflows/test.yml @@ -0,0 +1,26 @@ +name: Units Tests +on: + pull_request: + paths: + - apps/** + - packages/** +jobs: + test: + name: Tests + runs-on: ubuntu-latest + + steps: + - name: Checkout + uses: actions/checkout@v3 + + - name: Setup Node + uses: pnpm/action-setup@v3 + with: + version: 8 + + # Throw an error if the yarn.lock file doesn't match the installed dependencies (rather than updating it in-place, which it does by default locally) + - name: Install + run: pnpm install --no-frozen-lockfile + + - name: Lint + run: pnpm test:run