diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 345fe73..2238360 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -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 diff --git a/.node-version b/.node-version new file mode 100644 index 0000000..593cb75 --- /dev/null +++ b/.node-version @@ -0,0 +1 @@ +20.16.0 \ No newline at end of file