From bb7269a1a4b954b96b00c74ecb13d382552435b6 Mon Sep 17 00:00:00 2001 From: Timothy Lin <55767165+Deodat-Lawson@users.noreply.github.com> Date: Thu, 4 Sep 2025 23:20:02 -0400 Subject: [PATCH 1/2] Create ci.yml Setting up initial CI --- .github/workflows/ci.yml | 62 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 62 insertions(+) create mode 100644 .github/workflows/ci.yml diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 00000000..16fb7650 --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,62 @@ +name: CI + +on: + push: + branches: [ main, develop ] + pull_request: + branches: [ main, develop ] + +jobs: + lint-and-test: + name: Lint, Type Check, and Build + runs-on: ubuntu-latest + + steps: + - name: Checkout code + uses: actions/checkout@v4 + + - name: Setup Node.js + uses: actions/setup-node@v4 + with: + node-version: '20' + + - name: Setup pnpm + uses: pnpm/action-setup@v4 + with: + version: 10.15.1 + + - name: Get pnpm store directory + shell: bash + run: | + echo "STORE_PATH=$(pnpm store path --silent)" >> $GITHUB_ENV + + - name: Setup pnpm cache + uses: actions/cache@v4 + with: + path: ${{ env.STORE_PATH }} + key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }} + restore-keys: | + ${{ runner.os }}-pnpm-store- + + - name: Install dependencies + run: pnpm install --frozen-lockfile + + - name: Run ESLint + run: pnpm lint + + - name: Run TypeScript type check + run: pnpm typecheck + + - name: Check Prettier formatting + run: pnpm format:check + + - name: Build application + run: pnpm build + + - name: Upload build artifacts (optional) + if: success() + uses: actions/upload-artifact@v4 + with: + name: build-files + path: .next/ + retention-days: 1 From 59328267ee09cbce20140f82132393e1caf13038 Mon Sep 17 00:00:00 2001 From: Timothy Lin <55767165+Deodat-Lawson@users.noreply.github.com> Date: Thu, 4 Sep 2025 23:22:51 -0400 Subject: [PATCH 2/2] Update ci.yml removed fixed lockfile --- .github/workflows/ci.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 16fb7650..40bf5c41 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -2,9 +2,9 @@ name: CI on: push: - branches: [ main, develop ] + branches: [ main ] pull_request: - branches: [ main, develop ] + branches: [ main ] jobs: lint-and-test: @@ -39,7 +39,7 @@ jobs: ${{ runner.os }}-pnpm-store- - name: Install dependencies - run: pnpm install --frozen-lockfile + run: pnpm install - name: Run ESLint run: pnpm lint