Skip to content

Workflow file for this run

name: Continuous Integration for Comment Service
on:
push:
branches:
- dev
jobs:
testing:
name: Testing Comment Service
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Setup JDK 17
uses: actions/setup-java@v3
with:
distribution: 'corretto'
java-version: 17
- name: Set up MongoDB URI
run: echo "SPRING_DATA_MONGODB_URI=mongodb://localhost:27017/comment-service" >> $GITHUB_ENV
- name: Unit Tests
run: mvn -B test --file pom.xml
build-image:
needs: testing
uses: ./.github/workflows/build-image.yaml
secrets:
DOCKER_HUB_ACCESS_TOKEN: ${{ secrets.DOCKER_HUB_ACCESS_TOKEN }}
notify:
needs: scan-image

Check failure on line 38 in .github/workflows/main.yaml

View workflow run for this annotation

GitHub Actions / Continuous Integration for Comment Service

Invalid workflow file

The workflow is not valid. .github/workflows/main.yaml (Line: 38, Col: 12): Job 'notify' depends on unknown job 'scan-image'.
uses: ./.github/workflows/notifyCI.yaml
secrets:
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }}