From 308f40789355d6dec12ee7e96bb875d5227c593f Mon Sep 17 00:00:00 2001 From: Hiroyuki Okada Date: Sat, 17 Aug 2024 22:41:35 +0900 Subject: [PATCH] Update nodejs.yml --- .github/workflows/nodejs.yml | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/.github/workflows/nodejs.yml b/.github/workflows/nodejs.yml index 06f599c..dc9152b 100644 --- a/.github/workflows/nodejs.yml +++ b/.github/workflows/nodejs.yml @@ -15,8 +15,11 @@ jobs: - uses: actions/checkout@v4 with: fetch-depth: 0 - - name: Install dependencies - run: npm ci + - uses: actions/checkout@v4 + with: + repository: okhiroyuki/composite-actions + path: ./.github/actions/composite-actions + - uses: ./.github/actions/composite-actions/setup-node - name: Test and coverage run: npm run coverage - name: SonarCloud Scan @@ -28,10 +31,11 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 - - name: Use Node.js - uses: actions/setup-node@v4 + - uses: actions/checkout@v4 with: - node-version: "18" + repository: okhiroyuki/composite-actions + path: ./.github/actions/composite-actions + - uses: ./.github/actions/composite-actions/setup-node - name: npm install, build, and test run: | npm ci