cmdline.yml (839B)
1 name: Commandline tests 2 3 on: 4 push: 5 branches-ignore: 6 - 'test-*' 7 workflow_dispatch: 8 9 concurrency: 10 group: ${{ github.workflow }}-${{ github.ref }} 11 cancel-in-progress: true 12 13 jobs: 14 15 build: 16 name: Test 17 runs-on: ${{ matrix.os }} 18 strategy: 19 matrix: 20 os: [macos-latest, ubuntu-latest, windows-latest] 21 steps: 22 23 - name: Set up Go 1.19 24 uses: actions/setup-go@v4 25 with: 26 go-version: 1.19 27 id: go 28 29 - name: Check out code 30 uses: actions/checkout@v4 31 32 - name: Install windows build helpers 33 if: startsWith(matrix.os, 'windows') 34 run: choco install mingw 35 36 - name: Install libcurl 37 if: startsWith(matrix.os, 'ubuntu') 38 run: sudo apt install libcurl4-openssl-dev 39 40 - name: Run tests 41 run: go run ./rig.go 42 working-directory: ./testrig 43