1
0
mirror of https://github.com/robonen/tools.git synced 2026-03-20 02:44:45 +00:00

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
This commit is contained in:
2024-04-26 04:20:02 +07:00
committed by GitHub
parent f6a1e68d85
commit 26b2392f9b

29
.github/workflows/ci.yaml vendored Normal file
View File

@@ -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