From 082cc0dab8df018bc47dd26ac071e05b4f4d8624 Mon Sep 17 00:00:00 2001 From: Pawel Kosiec Date: Wed, 6 Mar 2024 17:14:22 +0100 Subject: [PATCH] Test the pipelines --- .github/workflows/branch-build.yml | 87 +++++++++++++++--------------- 1 file changed, 44 insertions(+), 43 deletions(-) diff --git a/.github/workflows/branch-build.yml b/.github/workflows/branch-build.yml index 29f1ee18f..2ca0b8383 100644 --- a/.github/workflows/branch-build.yml +++ b/.github/workflows/branch-build.yml @@ -4,6 +4,7 @@ on: push: branches: - main + - fix-e2e-tests repository_dispatch: types: [ trigger-e2e-tests ] @@ -30,52 +31,52 @@ jobs: id: extract-version run: | IMAGE_VERSION=$(git rev-parse --short HEAD) - echo "versions={\"image-version\":[\"v9.99.9-dev\",\"0.0.0-${IMAGE_VERSION}\"]}" >> $GITHUB_OUTPUT - build: - if: github.event_name != 'repository_dispatch' # skip if triggered by repository_dispatch - needs: [extract-metadata] - strategy: - matrix: ${{ fromJson(needs.extract-metadata.outputs.versions) }} - runs-on: ubuntu-latest - env: - GO111MODULE: on - GOPATH: /home/runner/work/botkube - GOBIN: /home/runner/work/botkube/bin - DOCKER_CLI_EXPERIMENTAL: "enabled" - steps: - - name: Checkout - uses: actions/checkout@v4 - - name: Setup Go - uses: actions/setup-go@v5 - with: - go-version-file: 'go.mod' - cache: true - - name: Set up QEMU - uses: docker/setup-qemu-action@v3 - - name: Docker Login - uses: docker/login-action@v1 - with: - registry: ghcr.io - username: ${{ github.actor }} - password: ${{ secrets.GITHUB_TOKEN }} - - name: Install GoReleaser - uses: goreleaser/goreleaser-action@v5 - with: - install-only: true - version: latest - - name: Run GoReleaser - run: | - make release-snapshot - env: - ANALYTICS_API_KEY: ${{ secrets.ANALYTICS_API_KEY }} - GORELEASER_CURRENT_TAG: ${{ matrix.image-version }} - IMAGE_TAG: ${{ matrix.image-version }} + echo "versions={\"image-version\":[\"v9.99.9-dev\",\"0.0.0-ced876da\"]}" >> $GITHUB_OUTPUT +# build: +# if: github.event_name != 'repository_dispatch' # skip if triggered by repository_dispatch +# needs: [extract-metadata] +# strategy: +# matrix: ${{ fromJson(needs.extract-metadata.outputs.versions) }} +# runs-on: ubuntu-latest +# env: +# GO111MODULE: on +# GOPATH: /home/runner/work/botkube +# GOBIN: /home/runner/work/botkube/bin +# DOCKER_CLI_EXPERIMENTAL: "enabled" +# steps: +# - name: Checkout +# uses: actions/checkout@v4 +# - name: Setup Go +# uses: actions/setup-go@v5 +# with: +# go-version-file: 'go.mod' +# cache: true +# - name: Set up QEMU +# uses: docker/setup-qemu-action@v3 +# - name: Docker Login +# uses: docker/login-action@v1 +# with: +# registry: ghcr.io +# username: ${{ github.actor }} +# password: ${{ secrets.GITHUB_TOKEN }} +# - name: Install GoReleaser +# uses: goreleaser/goreleaser-action@v5 +# with: +# install-only: true +# version: latest +# - name: Run GoReleaser +# run: | +# make release-snapshot +# env: +# ANALYTICS_API_KEY: ${{ secrets.ANALYTICS_API_KEY }} +# GORELEASER_CURRENT_TAG: ${{ matrix.image-version }} +# IMAGE_TAG: ${{ matrix.image-version }} integration-tests: if: github.event_name != 'repository_dispatch' # skip if triggered by repository_dispatch name: Integration tests runs-on: ubuntu-latest - needs: [ build ] + needs: [ extract-metadata ] permissions: contents: read packages: read @@ -210,7 +211,7 @@ jobs: cli-migration-e2e: name: CLI Migration E2E tests runs-on: ubuntu-latest - needs: [ build ] + needs: [ extract-metadata ] permissions: contents: read packages: read @@ -290,7 +291,7 @@ jobs: cloud-slack-dev-e2e: name: Botkube Cloud Slack Dev E2E runs-on: ubuntu-latest - needs: [ build ] + needs: [ extract-metadata ] permissions: contents: read packages: read