mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2024-12-27 04:08:53 +01:00
51 lines
1.2 KiB
YAML
51 lines
1.2 KiB
YAML
name: Vulnerability Check
|
|
|
|
on:
|
|
pull_request:
|
|
push:
|
|
branches:
|
|
- main
|
|
|
|
jobs:
|
|
test:
|
|
strategy:
|
|
matrix:
|
|
os: [ubuntu-latest, macos-latest, windows-latest]
|
|
go: ['1.20.7', '1.21.0']
|
|
name: Vulnerability Check with Go ${{ matrix.go }} on ${{ matrix.os }}
|
|
runs-on: ${{ matrix.os }}
|
|
env:
|
|
DISPLAY: ':99.0'
|
|
defaults:
|
|
run:
|
|
shell: bash
|
|
steps:
|
|
- name: Git
|
|
run: |
|
|
# See actions/checkout#135
|
|
git config --global core.autocrlf false
|
|
git config --global core.eol lf
|
|
|
|
- name: Checkout
|
|
uses: actions/checkout@v3
|
|
|
|
- name: Setup Go
|
|
uses: actions/setup-go@v4
|
|
with:
|
|
go-version: ${{ matrix.go }}
|
|
|
|
- name: Install govulncheck
|
|
run: |
|
|
go install golang.org/x/vuln/cmd/govulncheck@latest
|
|
|
|
- name: Install dependencies
|
|
if: runner.os == 'Linux'
|
|
run: |
|
|
sudo apt-get update
|
|
sudo apt-get install libasound2-dev libgl1-mesa-dev libxcursor-dev libxi-dev libxinerama-dev libxrandr-dev libxxf86vm-dev
|
|
|
|
- name: govulncheck
|
|
run: |
|
|
govulncheck ./...
|
|
env GOOS=js GOARCH=wasm govulncheck ./...
|