From e488e6a331b23a6aac1604d2a839884a65f9a99a Mon Sep 17 00:00:00 2001 From: Patrick Wei <44277752+pwei1018@users.noreply.github.com> Date: Wed, 28 Aug 2024 23:10:40 -0700 Subject: [PATCH] Update frontend-ci.yaml --- .github/workflows/frontend-ci.yaml | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/.github/workflows/frontend-ci.yaml b/.github/workflows/frontend-ci.yaml index bb661bb9..bf0f76a9 100644 --- a/.github/workflows/frontend-ci.yaml +++ b/.github/workflows/frontend-ci.yaml @@ -95,6 +95,14 @@ jobs: node-version: ${{ matrix.node-version }} cache: 'pnpm' cache-dependency-path: ${{ inputs.working_directory }}/pnpm-lock.yaml + - name: Copy .env + if: ${{ hashFiles('.env.example') != '' }} + run: | + cp .env.example .env + - name: Copy .env + if: ${{ hashFiles('.env.sample') != '' }} + run: | + cp .env.sample .env - name: Install dependencies run: pnpm install - name: Testing @@ -199,6 +207,14 @@ jobs: node-version: ${{ matrix.node-version }} cache: npm cache-dependency-path: ${{ inputs.working_directory }}/package-lock.json + - name: Copy .env + if: ${{ hashFiles('.env.example') != '' }} + run: | + cp .env.example .env + - name: Copy .env + if: ${{ hashFiles('.env.sample') != '' }} + run: | + cp .env.sample .env - name: Install dependencies run: | npm ci