on: [push, pull_request] name: test jobs: test: strategy: matrix: go-version: [1.16.x, 1.17.x] os: [ubuntu-latest, windows-latest] runs-on: ${{ matrix.os }} steps: - name: Install env dependancies run: | if [ "$RUNNER_OS" == "Linux" ]; then sudo apt-get install -y xorg-dev libx11-dev libxrandr-dev libxinerama-dev libxcursor-dev libxi-dev libopenal-dev libasound2-dev libgl1-mesa-dev elif [ "$RUNNER_OS" == "Windows" ]; then # choco install important_windows_software else echo "$RUNNER_OS not supported" exit 1 fi shell: bash - name: Install Go uses: actions/setup-go@v2 with: go-version: ${{ matrix.go-version }} - name: Checkout code uses: actions/checkout@v2 - name: Test run: go test ./...