From 4cad61e3db9788fa63ba01e99b9e68722c069bc8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Luca=20F=C3=A9lix?= Date: Mon, 15 Apr 2024 22:47:52 +0200 Subject: [PATCH] ci: :test_tube: create test workflow --- .github/workflows/test.yaml | 37 +++++++++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100644 .github/workflows/test.yaml diff --git a/.github/workflows/test.yaml b/.github/workflows/test.yaml new file mode 100644 index 0000000..0451f58 --- /dev/null +++ b/.github/workflows/test.yaml @@ -0,0 +1,37 @@ +name: Test +on: + push: + branches: + - "*" + +jobs: + test: + runs-on: ubuntu-latest + + steps: + - name: Checkout + uses: actions/checkout@v2 + + - name: Cache pnpm modules + id: cache-modules + uses: actions/cache@v2 + with: + path: | + ~/.pnpm-store + **/node_modules + key: ${{ runner.os }}-${{ hashFiles('pnpm-lock.yaml', 'rollup.config.js') }} + restore-keys: | + ${{ runner.os }}- + + - name: Setup pnpm + uses: pnpm/action-setup@v2.2.1 + with: + version: latest + run_install: false + + - name: Install Packages + if: steps.cache-modules.outputs.cache-hit != 'true' + run: pnpm install --no-frozen-lockfile + + - name: Test + run: pnpm test