Skip to content

Contract Testing CI #2876

Contract Testing CI

Contract Testing CI #2876

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 withny-dl
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
env:
WITHNY_USERNAME: ${{ secrets.WITHNY_USERNAME }}
WITHNY_PASSWORD: ${{ secrets.WITHNY_PASSWORD }}
run: go test -v -tags=contract -timeout=30s github.com/Darkness4/withny-dl/withny/api