Skip to content

Commit

Permalink
Fix husky in api
Browse files Browse the repository at this point in the history
  • Loading branch information
lubnar committed Oct 28, 2024
1 parent bcc948e commit bdb3e95
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 6 deletions.
26 changes: 20 additions & 6 deletions .github/workflows/build-onyx.yml
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ jobs:
qg-api-service
key: ${{ steps.cache.outputs.cache-primary-key }}

test:
Build-docker-image:
runs-on: ubuntu-latest
needs:
- build-onyx
Expand All @@ -149,9 +149,6 @@ jobs:
path: |
onyx/bin
key: onyx-${{ hashFiles('onyx/**') }}

- name: Check
run: ls -ltr onyx/bin

- name: restore typescript-apps cache
uses: actions/cache/restore@v4
Expand All @@ -160,6 +157,23 @@ jobs:
yaku-apps-typescript
key: typescript-apps-${{ hashFiles('yaku-apps-typescript/**') }}

- name: Check
run: ls -ltr yaku-apps-typescript
- name: restore backend cache
uses: actions/cache/restore@v4
with:
path: |
qg-api-service
key: qg-api-service-${{ hashFiles('qg-api-service/**') }}

- name: Build docker image
uses: docker/build-push-action@v5
with:
pull: true
push: false
build-args: |
BASE_IMAGE_WORKFLOW_NAME=${{ env.BASE_IMAGE_UBUNTU_NAME }}
tags: ${{ env.BASE_TAG }},${{ env.BASE_TAG_LATEST }}
context: .
target: development
file: qg-api-service/qg-api-service/Dockerfile
platforms: linux/amd64

1 change: 1 addition & 0 deletions qg-api-service/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
"build": "npx turbo run build --continue --cache-dir=.turbo",
"lint": "npx turbo run lint --cache-dir=.turbo",
"lint-staged": "npx lint-staged",
"prepare": "cd ../ && husky install ./qg-api-service/.husky",
"format": "npx turbo run format --cache-dir=.turbo",
"test:cov": "npx turbo run test:cov --cache-dir=.turbo"
},
Expand Down

0 comments on commit bdb3e95

Please sign in to comment.