Skip to content

Commit

Permalink
adding api test
Browse files Browse the repository at this point in the history
  • Loading branch information
tomlebl committed May 1, 2024
1 parent 2c6da50 commit 41f9f2a
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 9 deletions.
8 changes: 6 additions & 2 deletions .github/workflows/build-docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,15 @@ on:
options:
- dev-latest
- production
push:
tags: [dev-latest, production]
# push:
# tags: [dev-latest, production]
jobs:
test_api:
name: Run automatic test for API
uses: ./.github/workflows/test-api.yml
push_to_hub:
name: Push Docker image to Docker Hub
needs: test_api
strategy:
matrix:
include:
Expand Down
14 changes: 7 additions & 7 deletions .github/workflows/test-api.yml
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
name: Test API
on:
workflow_dispatch
# push:
# branches:
# - 'main'
# pull_request:
# types:
# - opened
workflow_call:
push:
branches:
- 'main'
pull_request:
types:
- opened
jobs:
test:
env:
Expand Down

0 comments on commit 41f9f2a

Please sign in to comment.