test: write test codes with gh workflow

This commit is contained in:
Starcea 2024-08-10 17:08:53 +09:00
commit ce0ca5988e
No known key found for this signature in database
GPG key ID: B7A77E32374911E1
7 changed files with 56 additions and 5 deletions

21
.github/workflows/test.yml vendored Normal file
View file

@ -0,0 +1,21 @@
name: CI
on: [push, pull_request, workflow_dispatch]
jobs:
test:
runs-on: ubuntu-latest
steps:
- name: Checkout branch
uses: actions/checkout@v4
- name: Setup pnpm
uses: pnpm/action-setup@v4
- name: Setup node.js 20
uses: actions/setup-node@v4
with:
node-version: 20
cache: "pnpm"
- name: Install Dependencies
run: pnpm i --frozen-lockfile
- name: Run tests
run: pnpm test