From 69b6e8db12055682d088a4767fa9fdaff3f0ad97 Mon Sep 17 00:00:00 2001 From: Marcus Date: Sat, 16 Nov 2024 12:27:31 -0800 Subject: [PATCH] Update CI action --- .github/workflows/ci.yml | 27 +++++++++++++++------------ 1 file changed, 15 insertions(+), 12 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index f9cbbf945..75a0214d8 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -2,25 +2,28 @@ name: CI on: push: - branches: [ master ] + branches: + - master pull_request: - branches: [ master ] + branches: + - master jobs: test: name: Test runs-on: ubuntu-latest steps: - - name: Checkout - uses: actions/checkout@v2 + - name: Checkout + uses: actions/checkout@v4 - - name: Setup Node.js environment - uses: actions/setup-node@v2.1.2 - with: - node-version: 14 + - name: Setup Node.js environment + uses: actions/setup-node@v4 + with: + node-version: lts/* + cache: npm - - name: Install dependencies - run: npm ci + - name: Install dependencies + run: npm ci - - name: Run tests - run: npm test + - name: Run tests + run: npm test