From 26b2392f9beb68afe81bc3848d29220548662986 Mon Sep 17 00:00:00 2001 From: Andrew Robonen Date: Fri, 26 Apr 2024 04:20:02 +0700 Subject: [PATCH] ops(repo): add CI workflow for running tests on pull requests (#11) * ops(repo): add CI workflow for running tests on pull requests * fix(repo): test command in CI workflow to use pnpm run all:test * fix(repo): update Node version in CI workflow to 20.x * fix(repo): update CI workflow to install dependencies using pnpm --- .github/workflows/ci.yaml | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 .github/workflows/ci.yaml diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml new file mode 100644 index 0000000..49cfa64 --- /dev/null +++ b/.github/workflows/ci.yaml @@ -0,0 +1,29 @@ +name: CI + +on: + - pull_request + +jobs: + test: + runs-on: ubuntu-latest + + permissions: + contents: read + pull-requests: write + + steps: + - uses: actions/checkout@v4 + + - name: Install Node + uses: actions/setup-node@v4 + with: + node-version: 20.x + + - name: Install pnpm + uses: pnpm/action-setup@v3 + + - name: Install dependencies + run: pnpm install --frozen-lockfile + + - name: Test + run: pnpm run all:test \ No newline at end of file