Skip to content

Commit

Permalink
Update runner os for docker builds and test workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
hjpotter92 committed Sep 21, 2023
1 parent 12f6b8c commit 4c79fd3
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 6 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/catalyst.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,8 @@ concurrency:
jobs:
docker:
name: ${{ matrix.docker_images.label }} (${{ matrix.targets.target_suffix }}${{ matrix.targets.debug_suffix }})
runs-on: ubuntu-latest-m
# Uses a self-hosted ubuntu based actions runner
runs-on: ubuntu-amd64
permissions:
packages: write
contents: read
Expand All @@ -40,7 +41,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
Expand Down
13 changes: 9 additions & 4 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,8 @@ concurrency:
jobs:
test:
name: Test the catalyst project
runs-on: ubuntu-latest-m
# Uses a self-hosted ubuntu based actions runner
runs-on: ubuntu-amd64
steps:
- name: Check out code
uses: actions/checkout@v3
Expand All @@ -28,7 +29,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

Expand All @@ -53,13 +54,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
Expand Down

0 comments on commit 4c79fd3

Please sign in to comment.