Fix version in the Docker CI Build #3533
Workflow file for this run
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: Trigger test suite | |
on: | |
pull_request: | |
push: | |
branches: | |
- main | |
jobs: | |
unit-test: | |
name: Test the catalyst-api project | |
runs-on: ubuntu-20.04 | |
steps: | |
- name: Check out code | |
uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
# Check https://github.com/livepeer/go-livepeer/pull/1891 | |
# for ref value discussion | |
ref: ${{ github.event.pull_request.head.sha }} | |
- name: Set up go | |
id: go | |
uses: actions/setup-go@v5 | |
with: | |
go-version-file: go.mod | |
cache: true | |
cache-dependency-path: go.sum | |
- name: Install go modules | |
if: steps.go.outputs.cache-hit != 'true' | |
run: go mod download | |
- name: Install dependencies | |
uses: awalsh128/cache-apt-pkgs-action@latest | |
with: | |
packages: ffmpeg | |
version: 1.0 | |
- name: go fmt | |
run: | | |
go fmt ./... | |
git diff --exit-code | |
- name: Run tests with coverage | |
run: | | |
make generate | |
go test $(go list ./... | grep -v cucumber) --short --race --covermode=atomic --coverprofile=coverage.out | |
- name: Upload coverage reports | |
uses: codecov/codecov-action@v4 | |
with: | |
files: ./coverage.out | |
name: ${{ github.event.repository.name }} | |
verbose: true | |
cucumber-test: | |
name: Cucumber tests | |
runs-on: ubuntu-20.04 | |
steps: | |
- name: Check out code | |
uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
# Check https://github.com/livepeer/go-livepeer/pull/1891 | |
# for ref value discussion | |
ref: ${{ github.event.pull_request.head.sha }} | |
- name: Set up go | |
id: go | |
uses: actions/setup-go@v5 | |
with: | |
go-version-file: go.mod | |
cache: true | |
cache-dependency-path: go.sum | |
- name: Install go modules | |
if: steps.go.outputs.cache-hit != 'true' | |
run: go mod download | |
- name: Install dependencies | |
uses: awalsh128/cache-apt-pkgs-action@latest | |
with: | |
packages: ffmpeg | |
version: 1.0 | |
- name: Run cucumber tests | |
run: | | |
go install github.com/cucumber/godog/cmd/godog@latest | |
make generate integration-test | |
- name: Upload logs | |
uses: actions/upload-artifact@v3 | |
if: failure() | |
with: | |
name: cucumber-logs | |
path: test/logs |