.github/workflows: improve go-vet test targets

This commit is contained in:
Hajime Hoshi 2023-10-05 02:23:51 +09:00
parent ef1e495aba
commit 370e506dc9
3 changed files with 15 additions and 4 deletions

View File

@ -1,4 +1,2 @@
github.com/hajimehoshi/ebiten/v2/internal/cocoa github.com/hajimehoshi/ebiten/v2/internal/cocoa
github.com/hajimehoshi/ebiten/v2/internal/graphicsdriver/directx
github.com/hajimehoshi/ebiten/v2/internal/graphicsdriver/metal/mtl github.com/hajimehoshi/ebiten/v2/internal/graphicsdriver/metal/mtl
github.com/hajimehoshi/ebiten/v2/internal/goglfw

View File

@ -0,0 +1,2 @@
github.com/hajimehoshi/ebiten/v2/internal/graphicsdriver/directx
github.com/hajimehoshi/ebiten/v2/internal/goglfw

View File

@ -61,9 +61,20 @@ jobs:
run: | run: |
Xvfb :99 -screen 0 1024x768x24 > /dev/null 2>&1 & Xvfb :99 -screen 0 1024x768x24 > /dev/null 2>&1 &
- name: go vet - name: go vet (Linux)
if: runner.os == 'Linux'
run: | run: |
go list ./... | grep -v -x -F -f .github/workflows/govetblock.txt | xargs go vet go vet ./...
- name: go vet (macOS)
if: runner.os == 'macOS'
run: |
go list ./... | grep -v -x -F -f .github/workflows/govetblock_darwin.txt | xargs go vet
- name: go vet (Windows)
if: runner.os == 'Windows'
run: |
go list ./... | grep -v -x -F -f .github/workflows/govetblock_windows.txt | xargs go vet
- name: go vet (vettool) - name: go vet (vettool)
# Stop vettools for old Go versions. Apparently this is an issue in golang.org/x/tools (golang/go#62519) # Stop vettools for old Go versions. Apparently this is an issue in golang.org/x/tools (golang/go#62519)