From d84267b78a5eb70516de599a9f6114e2254398c1 Mon Sep 17 00:00:00 2001 From: jsun969 Date: Fri, 20 Sep 2024 11:47:11 +0930 Subject: [PATCH] ci: tests --- .github/workflows/tests.yml | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 .github/workflows/tests.yml diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml new file mode 100644 index 0000000..44d297e --- /dev/null +++ b/.github/workflows/tests.yml @@ -0,0 +1,25 @@ +name: Unit tests +on: + push: +env: + PNPM_VERSION: 9 +jobs: + build: + runs-on: ubuntu-20.04 + strategy: + matrix: + node-version: [20] + steps: + - uses: actions/checkout@v4 + - uses: pnpm/action-setup@v4 + with: + version: ${{ env.PNPM_VERSION }} + - 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 --no-frozen-lockfile + - name: Run tests + run: pnpm run test