Skip to content

chore: Update go-ytdlp dependency to v1.2.0 and clean up scraper code #892

chore: Update go-ytdlp dependency to v1.2.0 and clean up scraper code

chore: Update go-ytdlp dependency to v1.2.0 and clean up scraper code #892

Workflow file for this run

name: GoAnime CI
on:
push:
branches: [main, dev, ipc]
pull_request:
branches: [main, dev, ipc]
jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, windows-latest, macOS-latest]
go-version: ['1.24.1']
steps:
- name: Set up Go
uses: actions/setup-go@v4
with:
go-version: ${{ matrix.go-version }}
- name: Check out code
uses: actions/checkout@v4
- name: Go Cache
uses: actions/cache@v4
with:
path: |
~/.cache/go-build
~/go/pkg/mod
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
restore-keys: |
${{ runner.os }}-go-
- name: Install dependencies (Linux)
if: runner.os == 'Linux'
run: |
sudo apt update
sudo apt install -y mpv
- name: Install dependencies (Windows)
if: runner.os == 'Windows'
run: |
choco install mpv -y
choco install golangci-lint -y
- name: Install dependencies (macOS)
if: runner.os == 'macOS'
run: |
brew install mpv
- name: Get dependencies
run: go get -v -t -d ./...
- name: Install golangci-lint (Non-Windows)
if: runner.os != 'Windows'
run: |
curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/HEAD/install.sh | sh -s -- -b $(go env GOPATH)/bin v2.1.6
- name: Run golangci-lint
run: golangci-lint run ./...
- name: Run tests
run: go test -v -coverprofile="coverage.out" ./...
- name: Upload coverage reports to Codecov
uses: codecov/codecov-action@v4.0.1
with:
token: ${{ secrets.CODECOV_TOKEN }}
file: coverage.out