From 5c2169746db06b6cb2c7e76ce24a7b61ee1cc843 Mon Sep 17 00:00:00 2001 From: Naramsim Date: Fri, 19 Jan 2024 23:45:31 +0100 Subject: [PATCH] cicd: test on pnpm --- .github/workflows/test.yml | 32 +++++++++++++++++++++++++++++++- 1 file changed, 31 insertions(+), 1 deletion(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 905310e..3e8a83a 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -3,7 +3,37 @@ name: Tests on: [push, pull_request] jobs: - unit: + pnpm: + runs-on: ubuntu-latest + strategy: + matrix: + node-version: ['18'] + steps: + - name: Clone repository + uses: actions/checkout@v3 + - uses: pnpm/action-setup@v2 + with: + version: 8 + - name: Use Node.js ${{ matrix.node-version }} + uses: actions/setup-node@v3 + with: + node-version: ${{ matrix.node-version }} + cache: 'pnpm' + - name: Install dependencies + run: pnpm install + - name: Setup pokeapi/api-data + run: | + pnpm run apidata:clone + pnpm run apidata:replace + - name: Build + run: | + pnpm run generate:types + pnpm run generate:main + pnpm run generate:jsdocs + - name: Unit test + run: | + pnpm t + npm: runs-on: ubuntu-latest strategy: matrix: