Tweak golanci-lint version #176
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: Test | |
on: | |
push: | |
branches: | |
- master | |
pull_request: | |
branches: | |
- '**' | |
jobs: | |
test: | |
name: test | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- run: | | |
docker-compose up -d minio db redis && | |
docker-compose up -d cworker conductor && | |
docker-compose up minio-prepare | |
- uses: actions/setup-go@v5 | |
with: | |
go-version: '1.20' | |
- uses: FedericoCarboni/setup-ffmpeg@v3 | |
id: setup-ffmpeg | |
with: | |
ffmpeg-version: "6.1.0" | |
- name: Run tests | |
run: go test -covermode=count -coverprofile=coverage.out ./... | |
golangci: | |
name: lint | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-go@v5 | |
with: | |
go-version: '1.20' | |
cache: false | |
- name: golangci-lint | |
uses: golangci/golangci-lint-action@v4 | |
with: | |
version: v1.53 # Works with go1.20 | |
args: -v |