Skip to content

Commit

Permalink
Add PSQL DB command
Browse files Browse the repository at this point in the history
  • Loading branch information
Hakim-Kay committed Jun 14, 2024
1 parent 39937c1 commit 1fa4a7a
Showing 1 changed file with 1 addition and 15 deletions.
16 changes: 1 addition & 15 deletions .github/workflows/workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,14 +38,6 @@ jobs:
distribution: 'adopt'
java-version: '17'

- name: Cache Maven packages
uses: actions/cache@v2
with:
path: ~/.m2
key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
restore-keys: |
${{ runner.os }}-maven-
- name: Install Maven
run: sudo apt-get install -y maven

Expand All @@ -63,16 +55,10 @@ jobs:
- name: Run unit tests
run: mvn test -Dtest=PostTest

- name: Run feature tests
run: |
mvn spring-boot:run &
sleep 30
mvn test -Dtest=SignUpTest
- name: Package the application
run: mvn package

- name: Connect to PostgreSQL instance
- name: Connect to PostgreSQL
env:
PSQL_COMMAND: ${{ secrets.PSQL_COMMAND }}
run: |
Expand Down

0 comments on commit 1fa4a7a

Please sign in to comment.