Contract Testing CI #1438
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: Contract Testing CI | |
on: | |
workflow_dispatch: | |
push: | |
branches: | |
- main | |
paths: | |
- '**.go' | |
- '**.c' | |
- '**.h' | |
- 'Dockerfile*' | |
- '.github/workflows/contract-test.yaml' | |
- 'go.*' | |
- 'Makefile' | |
pull_request: | |
branches: | |
- 'main' | |
- 'release/*' | |
schedule: | |
- cron: '0 * * * *' | |
jobs: | |
test: | |
name: Contract Test fc2-live-dl-go | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Download build-essential | |
run: | | |
sudo apt update -y | |
sudo apt install -y build-essential libavformat-dev libavcodec-dev libavutil-dev | |
- uses: actions/setup-go@v5 | |
with: | |
go-version-file: 'go.mod' | |
cache: false | |
cache-dependency-path: go.sum | |
- name: Download all Go modules | |
run: | | |
go mod download | |
- name: test | |
run: go test -v -p 1 -covermode=atomic -failfast -tags=contract -timeout=10m ./... |