From 3cb196acd6b980dd8acd5e52a9af591b86c95444 Mon Sep 17 00:00:00 2001 From: moslem-asaad Date: Sat, 1 Mar 2025 22:05:42 +0200 Subject: [PATCH] adding workflow to run the service tests --- .github/workflows/notification-service.yml | 29 ++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 .github/workflows/notification-service.yml diff --git a/.github/workflows/notification-service.yml b/.github/workflows/notification-service.yml new file mode 100644 index 0000000000..8a3f988cab --- /dev/null +++ b/.github/workflows/notification-service.yml @@ -0,0 +1,29 @@ +name: Run Notification Service Tests + +on: + push: + branches: [ main, dev ] + pull_request: + branches: [ main, dev ] + +jobs: + api-tests: + runs-on: ubuntu-latest + steps: + - name: Checkout Code + uses: actions/checkout@v3 + + - name: Set up Docker Buildx + uses: docker/setup-buildx-action@v2 + + - name: Login to Docker Hub + uses: docker/login-action@v2 + with: + username: ${{ secrets.DOCKERHUB_USERNAME }} + password: ${{ secrets.DOCKERHUB_TOKEN }} + + - name: Pull Latest notification service Image + run: docker pull moslemasaad/gitea-notificator + + - name: Run Tests + run: docker run --rm moslemasaad/gitea-notificator test \ No newline at end of file