diff --git a/.github/workflows/e2e.yml b/.github/workflows/e2e.yml index a322f1aa..283ed9fd 100644 --- a/.github/workflows/e2e.yml +++ b/.github/workflows/e2e.yml @@ -8,6 +8,9 @@ env: on: pull_request: branches: [ "main" ] + paths-ignore: + - 'docs/**' + - '**.md' jobs: nats: diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index ece51de2..a9cbd259 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -1,5 +1,12 @@ name: golangci-lint -on: [pull_request] + +on: + pull_request: + branches: [ "main" ] + paths-ignore: + - 'docs/**' + - '**.md' + permissions: contents: read # Optional: allow read access to pull request. Use with `only-new-issues` option. diff --git a/.github/workflows/sink.yml b/.github/workflows/sink.yml index ae854d32..88c6f130 100644 --- a/.github/workflows/sink.yml +++ b/.github/workflows/sink.yml @@ -15,12 +15,18 @@ on: paths: - 'hack/e2e/sink/**' - '.github/workflows/sink.yml' + paths-ignore: + - 'docs/**' + - '**.md' pull_request: branches: - main paths: - 'hack/e2e/sink/**' - '.github/workflows/sink.yml' + paths-ignore: + - 'docs/**' + - '**.md' jobs: build: @@ -68,7 +74,7 @@ jobs: org.opencontainers.image.title=E2E Tests Sink org.opencontainers.image.description=A webserver imitating an eventing sink that receives events and stores in memory org.opencontainers.image.url=https://github.com/kyma-project/eventing-manager/${{ env.E2E_SINK_DIR }} - + - name: Build Docker image id: build-and-push uses: docker/build-push-action@v5 diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml new file mode 100644 index 00000000..7c2c93cf --- /dev/null +++ b/.github/workflows/test.yml @@ -0,0 +1,31 @@ +name: test + +env: + KYMA_STABILITY: "unstable" + KYMA: "./hack/kyma" + +on: + push: + branches: [ "main" ] + paths-ignore: + - 'docs/**' + - '**.md' + pull_request: + branches: [ "main" ] + paths-ignore: + - 'docs/**' + - '**.md' + +jobs: + unit: + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v4 + - name: Sync GO dependencies + run: | + go mod tidy + go mod vendor + - name: Run tests + run: | + make test-only diff --git a/.github/workflows/validate.yml b/.github/workflows/validate.yml index 181215e9..542a2b37 100644 --- a/.github/workflows/validate.yml +++ b/.github/workflows/validate.yml @@ -7,27 +7,27 @@ env: on: push: branches: [ "main" ] + paths: + - 'api/**' + - 'config/crd/**' + paths-ignore: + - 'docs/**' + - '**.md' pull_request: branches: [ "main" ] + paths: + - 'api/**' + - 'config/crd/**' + paths-ignore: + - 'docs/**' + - '**.md' jobs: - unit-tests: - runs-on: ubuntu-latest - steps: - - name: Checkout - uses: actions/checkout@v4 - - name: Sync GO dependencies - run: | - go mod tidy - go mod vendor - - name: Run tests - run: | - make test-only - validate-crd: + crd: runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 - + - name: Install k3d tools run: | make -C hack/ci/ install-k3d-tools @@ -38,6 +38,6 @@ jobs: make -C hack/ci/ create-k3d kubectl version kubectl cluster-info - + - name: apply crd run: kubectl apply -f config/crd/bases/operator.kyma-project.io_eventings.yaml