From e9fd564f05c943dcf429534f2dc19d83d2cb29f2 Mon Sep 17 00:00:00 2001 From: asm Date: Tue, 13 Aug 2024 21:09:56 +0200 Subject: [PATCH] DV-000298: Improve the GitHub action file. --- .github/workflows/pipeline.yml | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/.github/workflows/pipeline.yml b/.github/workflows/pipeline.yml index 168d9341..a8e3a285 100644 --- a/.github/workflows/pipeline.yml +++ b/.github/workflows/pipeline.yml @@ -53,7 +53,7 @@ jobs: MYSQL_PASSWORD: ${{ secrets.MYSQL_PASSWORD }} REACT_APP_API_KEY: ${{ secrets.REACT_APP_API_KEY }} REACT_APP_TOKEN: ${{ secrets.REACT_APP_TOKEN }} - run: gradle clean build test + run: gradlew clean build test frontend: runs-on: ubuntu-latest @@ -74,7 +74,13 @@ jobs: node-version: ${{ matrix.node-version }} - name: Install Dependencies - run: npm ci + run: npm ci --force + + - name: Install Compose + uses: ndeloof/install-compose-action@v0.0.1 + with: + legacy: true + version: v2.1.0 - name: Install Docker Compose uses: docker/compose-action@v2 @@ -84,7 +90,7 @@ jobs: - name: Start Docker Containers run: | docker-compose up --detach --build - docker-compose exec -T app wait-for-it localhost:3000 # Replace with appropriate service and port + docker-compose exec -T app wait-for-it localhost - name: Run Cypress Smoke Tests uses: cypress-io/github-action@v4