From 603637d92f21d1996424a8ad2a1b14ca1f3ac24a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Oc=C3=A9an?= <46847941+oc8@users.noreply.github.com> Date: Mon, 18 Mar 2024 14:20:03 +0100 Subject: [PATCH] CI : test --- .github/workflows/CI.yml | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 .github/workflows/CI.yml diff --git a/.github/workflows/CI.yml b/.github/workflows/CI.yml new file mode 100644 index 0000000000..0c4923beb5 --- /dev/null +++ b/.github/workflows/CI.yml @@ -0,0 +1,32 @@ +name: CI + +on: [pull_request] + +jobs: + tests: + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v3 + - uses: actions/cache@v3 + with: + path: /home/runner/.local/share/pnpm/store + key: ${{ runner.os }}-${{ hashFiles('**/pnpm-lock.yaml') }} + restore-keys: | + ${{ runner.os }}- + - uses: pnpm/action-setup@v2 + with: + version: 8 + run_install: true + - uses: actions/setup-node@v4 + with: + node-version: 20 + cache: 'pnpm' + + - name: Install dependencies + run: pnpm install + + - name: Run unit tests + run: + cd packages/synapse-bridge + pnpm test:unit