Skip to content

Commit

Permalink
ci: fix test on deploy yml
Browse files Browse the repository at this point in the history
  • Loading branch information
George-Spanos committed Mar 7, 2024
1 parent a07a759 commit f381a5a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/build-and-deploy-prod.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,10 @@ jobs:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v4
- run: echo "${{ secrets.NPMRC }}" > src/web-api/.npmrc
- name: Test api
working-directory: ./src/web-api
run: |
npm run build:test -- --build-arg NPM_TOKEN=${{ secrets.NPM_TOKEN }} && npm run docker:test
run: npm run docker:test
build-client-ui:
needs: test
runs-on: ubuntu-22.04
Expand Down
4 changes: 1 addition & 3 deletions src/web-api/docker-compose.test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,6 @@ services:
calc-odds-api:
build:
context: ../calc-odds-api
secrets:
- npmrc
environment:
- ITERATIONS=30000
ports:
Expand All @@ -40,4 +38,4 @@ services:
- '5432:5432'
secrets:
npmrc:
file: ./.npmrc
file: .npmrc

0 comments on commit f381a5a

Please sign in to comment.