Skip to content

Commit

Permalink
Merge pull request #1443 from bcgov/fix/prashanth-workflow-caching
Browse files Browse the repository at this point in the history
Fix: caching issues in github workflow
  • Loading branch information
prv-proton authored Dec 13, 2024
2 parents da34ded + f08a1ad commit 2ddb754
Showing 1 changed file with 3 additions and 17 deletions.
20 changes: 3 additions & 17 deletions .github/workflows/docker-auto-test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,6 @@ jobs:
with:
python-version: "3.10.13"

- name: Set up Node.js
uses: actions/setup-node@v3
with:
node-version: "20"

- name: Install Docker Compose
run: |
sudo apt-get update
Expand All @@ -32,18 +27,10 @@ jobs:
uses: actions/cache@v3
with:
path: ~/.cache/pypoetry
key: ${{ runner.os }}-poetry-${{ hashFiles('**/poetry.lock') }}
key: ${{ runner.os }}-poetry-${{ hashFiles('backend/poetry.lock') }}
restore-keys: |
${{ runner.os }}-poetry-
- name: Cache Docker images
uses: actions/cache@v3
with:
path: /var/lib/docker
key: ${{ runner.os }}-docker-${{ hashFiles('**/Dockerfile') }}
restore-keys: |
${{ runner.os }}-docker-
- name: Install Poetry
run: pip install poetry==1.6.1

Expand Down Expand Up @@ -110,7 +97,6 @@ jobs:
report_individual_runs: "true"
deduplicate_classes_by_file_name: "true"


frontend-tests:
runs-on: ubuntu-latest
steps:
Expand All @@ -127,7 +113,7 @@ jobs:
uses: actions/cache@v3
with:
path: ~/.npm
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
key: ${{ runner.os }}-node-${{ hashFiles('frontend/package-lock.json') }}
restore-keys: |
${{ runner.os }}-node-
Expand Down Expand Up @@ -162,4 +148,4 @@ jobs:
check_name: "Frontend Test Results"
fail_on: "errors"
report_individual_runs: "true"
deduplicate_classes_by_file_name: "true"
deduplicate_classes_by_file_name: "true"

0 comments on commit 2ddb754

Please sign in to comment.