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