Skip to content

Commit

Permalink
CI:セットアップ
Browse files Browse the repository at this point in the history
Update Node.js CI workflow

Refactored the node.js CI workflow to streamline steps and organize them under the 'app' directory. Removed extraneous comments for clarity and added working-directory parameter to relevant steps for better directory management.
  • Loading branch information
k2works committed Oct 3, 2024
1 parent 4ce336f commit 175b4f9
Showing 1 changed file with 3 additions and 8 deletions.
11 changes: 3 additions & 8 deletions .github/workflows/node.js.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ jobs:
strategy:
matrix:
node-version: [18.x, 19.x, 20.x]

steps:
- uses: actions/checkout@v3

Expand All @@ -21,16 +20,12 @@ jobs:
with:
node-version: ${{ matrix.node-version }}
cache: 'npm'
working-directory: app

- name: Install dependencies
run: npm ci
working-directory: app
run: cd app && npm ci

- name: Build
run: npm run build --if-present
working-directory: app
run: cd app && npm run build --if-present

- name: Run tests
run: npm test
working-directory: app
run: cd app && npm test

0 comments on commit 175b4f9

Please sign in to comment.