build: update CI jobs #2067
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: Go | |
on: | |
push: | |
branches: [ master ] | |
pull_request: | |
branches: [ master ] | |
jobs: | |
build: | |
name: Go Build | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
os: [ubuntu-latest, macos-latest] | |
steps: | |
- name: Check out code into the Go module directory | |
uses: actions/checkout@v3 | |
- name: Setup Linux Dependencies | |
if: runner.os == 'Linux' | |
run: | | |
apt-get install -y libgl1-mesa-dev and xorg-dev | |
- name: Setup Windows Dependencies | |
if: runner.os == 'Windows' | |
run: | | |
choco install -y make mingw | |
- name: Set up Go 1.x | |
uses: actions/setup-go@v5 | |
with: | |
go-version: stable | |
id: go | |
- name: Run Tests | |
run: make check | |
docker: | |
name: Docker build | |
runs-on: [ ubuntu-latest ] | |
steps: | |
- name: Set up Go 1.x | |
uses: actions/setup-go@v5 | |
with: | |
go-version: stable | |
id: go | |
- name: Setup Node / NPM | |
if: runner.os == 'Linux' | |
uses: actions/setup-node@v3 | |
with: | |
node-version: '20' | |
- name: Check out code into the Go module directory | |
uses: actions/checkout@v3 | |
- name: Docker Build | |
if: runner.os == 'Linux' | |
run: make docker-hub |