From de4b9020cb89aa3c62bbe5dcab9b0cd7eb076965 Mon Sep 17 00:00:00 2001 From: Takeshi Kimata <117462761+kimatata@users.noreply.github.com> Date: Sun, 28 Jul 2024 10:45:32 +0900 Subject: [PATCH] feat: github actions --- .github/workflows/ci.yml | 19 ++++++++++++------- 1 file changed, 12 insertions(+), 7 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 5d2f2a0..6e3f676 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -19,18 +19,23 @@ jobs: - uses: actions/checkout@v4 # root - - name: Format and unit test + - name: Use Node.js ${{ matrix.node-version }} uses: actions/setup-node@v3 with: node-version: ${{ matrix.node-version }} cache: 'npm' - - run: npm ci - - run: npm run format # prettier - - run: npm run test # vitest + - name: Install dependencies + run: npm ci + - name: Format code + run: npm run format + - name: Run unit tests + run: npm run test # frontend - - name: nextjs build + - name: Install frontend dependencies working-directory: ./frontend - - run: npm ci - - run: npm run build # nextjs build + run: npm ci + - name: Build frontend + working-directory: ./frontend + run: npm run build