Merge pull request #44 from walnuts1018/renovate/github.com-minio-min… #163
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: | |
pull_request: | |
push: | |
workflow_dispatch: | |
jobs: | |
test: | |
name: Test | |
runs-on: ubuntu-latest | |
steps: | |
- name: Check out | |
uses: actions/checkout@v4 | |
- name: Set up Go | |
uses: actions/setup-go@v5 | |
with: | |
go-version-file: go.mod | |
cache: true | |
cache-dependency-path: go.sum | |
- name: go mod download | |
run: go mod download | |
- name: go generate 忘れを検出 | |
run: | | |
go generate ./... | |
git diff --exit-code -- ':(exclude)go.sum' | |
- name: golangci-lint | |
uses: golangci/golangci-lint-action@v6 | |
with: | |
version: v1.63.1 | |
- name: Install ffmpeg | |
run: | | |
sudo apt-get update | |
sudo apt-get install ffmpeg -y | |
- name: Run tests | |
run: go test -cover ./... -coverprofile="cover.out" | |
- name: Upload coverage to Codecov | |
uses: codecov/codecov-action@v5 | |
with: | |
token: ${{ secrets.CODECOV_TOKEN }} | |
files: cover.out | |
fail_ci_if_error: false | |
verbose: true | |
status-check: | |
runs-on: ubuntu-latest | |
needs: [test] | |
if: failure() | |
steps: | |
- run: exit 1 |