Skip to content

Commit

Permalink
Update frontend-ci.yaml
Browse files Browse the repository at this point in the history
  • Loading branch information
pwei1018 authored Aug 29, 2024
1 parent 85db40f commit e488e6a
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions .github/workflows/frontend-ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit e488e6a

Please sign in to comment.