Merge pull request #100 from Jacalz/modernize-go-1.19 #482
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: Platform Tests | |
on: [push, pull_request] | |
permissions: | |
contents: read | |
jobs: | |
platform_tests: | |
runs-on: ${{ matrix.os }} | |
strategy: | |
fail-fast: false | |
matrix: | |
go-version: ['1.19.x', 'stable'] | |
os: [ubuntu-latest, windows-latest, macos-latest] | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
persist-credentials: false | |
- uses: WillAbides/setup-go-faster@v1 | |
with: | |
go-version: ${{ matrix.go-version }} | |
- name: Get dependencies | |
run: >- | |
sudo apt-get update && | |
sudo apt-get install | |
bc | |
gcc | |
libgl1-mesa-dev | |
libwayland-dev | |
libx11-dev | |
libxkbcommon-dev | |
xorg-dev | |
xvfb | |
if: ${{ runner.os == 'Linux' }} | |
- name: Tests | |
run: go test "-test.benchtime" 10ms -tags ci ./... |