test(workflow): ensure media always present 'direct' transcode #126
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: Go | |
on: [push, pull_request] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/[email protected] | |
- name: Set up Go | |
uses: actions/[email protected] | |
with: | |
go-version: '1.22.5' | |
- name: Verify Go Mod | |
run: go mod verify | |
- name: Build | |
run: make build | |
- name: Check for pkg vulverabilities | |
run: go run golang.org/x/vuln/cmd/govulncheck@latest ./... | |
- name: Run staticcheck | |
run: go run honnef.co/go/tools/cmd/staticcheck@latest -f stylish -checks=all,-ST1000,-U1000 ./... | |
- name: Run golangci-lint | |
uses: golangci/[email protected] | |
with: | |
# during the golangci-lint execution, many files are extracted | |
# which conflict with those which are cached by the go setup | |
# and cause an insane amount of log spam. | |
# This is an ongoing issue with the golangci-lint action, and | |
# so for now we won't cache the Go artifacts: | |
# https://github.com/golangci/golangci-lint-action/issues/807 | |
skip-cache: true | |
- name: Setup FFmpeg | |
id: setup_ffmpeg | |
uses: federicocarboni/[email protected] | |
- name: Run Tests | |
uses: robherley/[email protected] | |
env: | |
OUTPUT_THEA_LOGS: 1 | |
TMDB_API_KEY: ${{ secrets.TMDB_API_KEY }} | |
FORMAT_FFMPEG_BINARY_PATH: ${{ steps.setup_ffmpeg.outputs.ffmpeg-path }}/ffmpeg | |
FORMAT_FFPROBE_BINARY_PATH: ${{ steps.setup_ffmpeg.outputs.ffmpeg-path }}/ffprobe |