Merge pull request #917 from jakobmoellerdev/s390x-arch #2925
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: "Main" | |
on: | |
pull_request: | |
push: | |
branches: | |
- "main" | |
jobs: | |
build: | |
name: "build" | |
runs-on: "ubuntu-20.04" | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-go@v5 | |
with: | |
go-version-file: "go.mod" | |
- name: Set up Docker Buildx | |
uses: docker/setup-buildx-action@v3 | |
- run: make setup | |
- run: make check-uncommitted | |
- run: make test | |
- run: make build-topolvm GOARCH=s390x | |
name: "Build TopoLVM for s390x architecture" | |
- run: make groupname-test | |
build-images: | |
name: "build-images" | |
uses: ./.github/workflows/build-images.yaml | |
container-structure-test: | |
name: "container-structure-test" | |
needs: build | |
runs-on: "ubuntu-20.04" | |
strategy: | |
fail-fast: true | |
matrix: | |
image: | |
- "normal" | |
- "with-sidecar" | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up Docker Buildx | |
uses: docker/setup-buildx-action@v3 | |
- run: make install-container-structure-test | |
- run: make image-${{ matrix.image }} | |
- run: make container-structure-test STRUCTURE_TEST_TARGET=${{ matrix.image }} | |
example: | |
if: startsWith(github.head_ref, 'bump-chart-') | |
name: "example" | |
runs-on: "ubuntu-20.04" | |
defaults: | |
run: | |
working-directory: "example" | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-go@v5 | |
with: | |
go-version-file: "go.mod" | |
- name: Set up Docker Buildx | |
uses: docker/setup-buildx-action@v3 | |
- run: make setup | |
- run: make run |