From 12f6b8c2dcb1ff011839b69469cedb571a9f8469 Mon Sep 17 00:00:00 2001 From: hjpotter92 Date: Fri, 15 Sep 2023 11:51:44 +0530 Subject: [PATCH 1/2] build.yaml: Use self-hosted runner for build pipeline --- .github/workflows/build.yaml | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml index 7b1433696..681369aaa 100644 --- a/.github/workflows/build.yaml +++ b/.github/workflows/build.yaml @@ -20,8 +20,8 @@ env: jobs: build: - name: Build and download binaries from manifest for ${{ matrix.platform.name }}-${{ matrix.architecture }} - runs-on: ubuntu-latest + name: Download binaries for ${{ matrix.platform.name }}-${{ matrix.architecture }} + runs-on: ${{ matrix.platform.name }} strategy: fail-fast: false matrix: @@ -30,9 +30,7 @@ jobs: - amd64 platform: - name: linux - os: ubuntu-latest - name: darwin - os: macos-latest steps: - name: Check out code From 4dde20b72f2b51302931e6dbf249ba1564fa237e Mon Sep 17 00:00:00 2001 From: hjpotter92 Date: Thu, 21 Sep 2023 13:30:23 +0530 Subject: [PATCH 2/2] Minor syntax fixes in workflow files --- .github/workflows/catalyst.yaml | 2 +- .github/workflows/test.yaml | 10 +++++++--- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/.github/workflows/catalyst.yaml b/.github/workflows/catalyst.yaml index 1345f9814..efef8b0ff 100644 --- a/.github/workflows/catalyst.yaml +++ b/.github/workflows/catalyst.yaml @@ -40,7 +40,7 @@ jobs: target: stripped target_suffix: "-arm64" debug_suffix: "" - # example: livepeer/catalyst:latest-amd-debug + # example: livepeer/catalyst:latest-amd64-debug # unstripped binaries for use with gdb coredump debugging - platforms: linux/amd64 target: full diff --git a/.github/workflows/test.yaml b/.github/workflows/test.yaml index 85ac7b100..d97ec50ca 100644 --- a/.github/workflows/test.yaml +++ b/.github/workflows/test.yaml @@ -28,7 +28,7 @@ jobs: uses: actions/setup-go@v4 with: go-version-file: go.mod - go-version: '1.20.5' + go-version: "1.20.5" cache: true cache-dependency-path: go.sum @@ -53,13 +53,17 @@ jobs: uses: FedericoCarboni/setup-ffmpeg@v2 - name: Run tests with coverage - run: go test --covermode=atomic --coverprofile=coverage.out $(go list ./... | grep -v 'test/e2e') + run: + go test --covermode=atomic --coverprofile=coverage.out $(go list ./... + | grep -v 'test/e2e') - name: Build Docker image run: make docker DOCKER_TAG=catalyst-e2e-test - name: Run E2E tests - run: go test $(go list ./... | grep 'test/e2e') --timeout 15m --image catalyst-e2e-test + run: + go test $(go list ./... | grep 'test/e2e') --timeout 15m --image + catalyst-e2e-test - name: Upload coverage reports uses: codecov/codecov-action@v3