From e406d653f2ace39dbeb0201c1fa667724fb9d376 Mon Sep 17 00:00:00 2001 From: Shelley Vohr Date: Thu, 22 Feb 2024 11:38:01 +0100 Subject: [PATCH] ci: fixup workflows --- .github/workflows/lint.yml | 17 ++++++++++------- .github/workflows/test.yml | 17 ++++++++++------- 2 files changed, 20 insertions(+), 14 deletions(-) diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index 6b2d786..a4b7c05 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -8,16 +8,19 @@ on: branches: - main +permissions: + contents: read + jobs: build: runs-on: macos-latest steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # tag: v4.1.1 - name: Setup Node.js - uses: actions/setup-node@v3 + uses: actions/setup-node@b39b52d1213e96004bfcb1c61a8a6fa8ab84f3e8 # tag: v4.0.1 with: - node-version: current - - name: Lint - run: | - npm install - npm run lint + node-version: lts/-1 + - name: Install Dependencies + run: npm ci + - name: Run Tests + run: npm run lint diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 4592843..ab276ed 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -8,16 +8,19 @@ on: branches: - main +permissions: + contents: read + jobs: build: runs-on: macos-latest steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # tag: v4.1.1 - name: Setup Node.js - uses: actions/setup-node@v3 + uses: actions/setup-node@b39b52d1213e96004bfcb1c61a8a6fa8ab84f3e8 # tag: v4.0.1 with: - node-version: current - - name: npm install, build, and test - run: | - npm install - npm test + node-version: lts/-1 + - name: Install Dependencies + run: npm ci + - name: Run Tests + run: npm test