Skip to content

Commit

Permalink
Update CI
Browse files Browse the repository at this point in the history
  • Loading branch information
morinokami committed Aug 13, 2024
1 parent 6036e50 commit 4ecad67
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 12 deletions.
23 changes: 11 additions & 12 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,27 +2,26 @@ name: CI

on:
push:
branches: [main]
branches: ["main"]
pull_request:
branches: [main]
branches: ["main"]

jobs:
test:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [18]
steps:
- uses: actions/checkout@v3
- uses: pnpm/action-setup@v2
with:
version: 7
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
- name: Checkout code
uses: actions/checkout@v4

- run: corepack enable
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
node-version-file: ./.node-version
cache: "pnpm"

- name: Install dependencies
run: pnpm install --frozen-lockfile

- name: Test
run: pnpm run test
1 change: 1 addition & 0 deletions .node-version
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
20.16.0

0 comments on commit 4ecad67

Please sign in to comment.