diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml new file mode 100644 index 0000000..c652c3e --- /dev/null +++ b/.github/workflows/main.yml @@ -0,0 +1,40 @@ +name: Application CI +on: + push: + branches: + - '!main' +concurrency: + group: application-ci-${{ github.ref }} + cancel-in-progress: true +jobs: + gradle: + name: 'Gradle Wrapper Validation' + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - uses: gradle/wrapper-validation-action@v2 + k6-report-ingress: + name: 'App: k6-report-ingress' + runs-on: ubuntu-latest + env: + SPRING_OUTPUT_ANSI_ENABLED: DETECT + SPRING_JPA_SHOW_SQL: false + steps: + - uses: actions/checkout@v4 + - uses: actions/setup-java@v4 + with: + distribution: 'temurin' + java-version: 21 + - name: Build & Test + run: ./gradlew :apps:k6-report-ingress:build + cli: + name: 'cli' + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + - name: Build + working-directory: cli + run: cargo build --verbose + - name: Run tests + working-directory: cli + run: cargo test --verbose