diff --git a/.github/workflows/code_test_pipeline.yaml b/.github/workflows/ci.yaml similarity index 88% rename from .github/workflows/code_test_pipeline.yaml rename to .github/workflows/ci.yaml index 4d6c153..26e6ade 100644 --- a/.github/workflows/code_test_pipeline.yaml +++ b/.github/workflows/ci.yaml @@ -1,11 +1,14 @@ -name: Code Test Pipeline +name: CI Pipeline on: + pull_request_target: + branches: [ "dev", "main" ] pull_request: - branches: ["dev", "main"] + branches: [ "dev", "main" ] permissions: contents: read checks: write + pull-requests: write env: DB_URL: ${{ secrets.DB_URL }} @@ -26,6 +29,7 @@ jobs: uses: actions/checkout@v4 with: ref: ${{ github.event.pull_request.head.ref }} + repository: ${{ github.event.pull_request.head.repo.full_name }} - name: Formatting Code with Google Java Style Guide uses: axel-op/googlejavaformat-action@v3 with: @@ -39,6 +43,8 @@ jobs: steps: - name: Checkout Repository uses: actions/checkout@v4 + with: + repository: ${{ github.event.pull_request.head.repo.full_name }} - name: Gradle Caching uses: actions/cache@v3 diff --git a/src/test/java/earlybird/earlybird/FailTest.java b/src/test/java/earlybird/earlybird/FailTest.java new file mode 100644 index 0000000..9fc8b81 --- /dev/null +++ b/src/test/java/earlybird/earlybird/FailTest.java @@ -0,0 +1,12 @@ +package earlybird.earlybird; + +import org.assertj.core.api.Assertions; +import org.junit.jupiter.api.Test; + +public class FailTest { + + @Test + public void test() { + Assertions.assertThat(true).isFalse(); + } +}