Skip to content

Commit

Permalink
Merge pull request #2801 from ohcnetwork/sainak/even-faster-builds
Browse files Browse the repository at this point in the history
Cleanup test workflow
  • Loading branch information
vigneshhari authored Jan 31, 2025
2 parents 283cd5e + 5e20e14 commit 9be535f
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 16 deletions.
9 changes: 6 additions & 3 deletions .github/workflows/linter.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,9 @@ jobs:
with:
python-version: "3.13"

- uses: pre-commit/action@v3.0.1
with:
extra_args: --color=always --from-ref ${{ github.event.pull_request.base.sha }} --to-ref ${{ github.event.pull_request.head.sha }}
- run: |
python -m pip install pre-commit
- run: |
pre-commit run --show-diff-on-failure --color=always \
--from-ref ${{ github.event.pull_request.base.sha }} --to-ref ${{ github.event.pull_request.head.sha }}
14 changes: 1 addition & 13 deletions .github/workflows/reusable-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,23 +47,11 @@ jobs:
mkdir -p ${{ runner.temp }}/.buildx-cache-new
mkdir -p ${{ runner.temp }}/.buildx-mounted-cache
- name: Bake docker images
uses: docker/bake-action@v5
with:
load: true
pull: true
set: |
*.cache-from=type=local,src=${{ runner.temp }}/.buildx-cache
*.cache-to=type=local,dest=${{ runner.temp }}/.buildx-cache-new,mode=max
files: docker-compose.yaml,docker-compose.local.yaml
env:
DOCKER_BUILD_SUMMARY: false

- name: Build images
run: |
docker buildx build \
--file docker/dev.Dockerfile \
--tag care:dev \
--tag care_local \
--cache-from=type=local,src=${{ runner.temp }}/.buildx-cache \
--cache-to=type=local,dest=${{ runner.temp }}/.buildx-cache-new,mode=max \
--platform linux/arm64 \
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/test-merge-queue.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ on:

jobs:
test:
name: Test
uses: ./.github/workflows/reusable-test.yml
secrets:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
1 change: 1 addition & 0 deletions .github/workflows/test-pull-request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ concurrency:

jobs:
test:
name: Test
uses: ./.github/workflows/reusable-test.yml
secrets:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}

0 comments on commit 9be535f

Please sign in to comment.