Skip to content

Commit

Permalink
👷 ci: Setup environment variables in shared workflow helper
Browse files Browse the repository at this point in the history
  • Loading branch information
aryanprince committed Jul 22, 2024
1 parent 5fc313b commit 384d280
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 24 deletions.
24 changes: 0 additions & 24 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -79,18 +79,6 @@ jobs:
- name: Setup
uses: ./tooling/github-actions/setup

- name: Setup environment variables for Student
run: cp .env.example .env
working-directory: apps/student/

- name: Setup environment variables for Library
run: cp .env.example .env
working-directory: apps/library/

- name: Setup environment variables for Finance
run: cp .env.example .env
working-directory: apps/finance/

- name: Run local databases with Docker Compose
uses: hoverkraft-tech/compose-action@v2.0.1

Expand All @@ -111,18 +99,6 @@ jobs:
- name: Setup
uses: ./tooling/github-actions/setup

- name: Setup environment variables for Student
run: cp .env.example .env
working-directory: apps/student/

- name: Setup environment variables for Library
run: cp .env.example .env
working-directory: apps/library/

- name: Setup environment variables for Finance
run: cp .env.example .env
working-directory: apps/finance/

- name: Run local databases with Docker Compose
uses: hoverkraft-tech/compose-action@v2.0.1

Expand Down
12 changes: 12 additions & 0 deletions tooling/github-actions/setup/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,3 +16,15 @@ runs:

- shell: bash
run: pnpm install

- name: Setup environment variables for Student
run: cp .env.example .env
working-directory: apps/student/

- name: Setup environment variables for Library
run: cp .env.example .env
working-directory: apps/library/

- name: Setup environment variables for Finance
run: cp .env.example .env
working-directory: apps/finance/

0 comments on commit 384d280

Please sign in to comment.