From fc747e9e4d12e2a03730a8d3891d713c8856c71f Mon Sep 17 00:00:00 2001 From: alvarosabu Date: Tue, 29 Oct 2024 17:15:30 +0100 Subject: [PATCH] ci: add test to actions --- .github/workflows/lint.yml | 1 - .github/workflows/test.yml | 27 +++++++++++++++++++++++++++ 2 files changed, 27 insertions(+), 1 deletion(-) create mode 100644 .github/workflows/test.yml diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index 8b49c05..209f90d 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -3,7 +3,6 @@ on: [push] env: PNPM_CACHE_FOLDER: .pnpm-store - HUSKY: 0 # Bypass husky commit hook for CI jobs: lint: diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml new file mode 100644 index 0000000..1c846da --- /dev/null +++ b/.github/workflows/test.yml @@ -0,0 +1,27 @@ +name: Run linters +on: [push] + +env: + PNPM_CACHE_FOLDER: .pnpm-store + +jobs: + test: + name: Test + runs-on: ubuntu-22.04 + strategy: + matrix: + node-version: [20] + steps: + - name: Checkout + uses: actions/checkout@v4 + - name: Setup pnpm + uses: pnpm/action-setup@v4 + - name: Use Node.js ${{ matrix.node-version }} + uses: actions/setup-node@v4 + with: + node-version: ${{ matrix.node-version }} + cache: pnpm + - name: Install dependencies + run: pnpm install + - name: Run Test + run: pnpm run test