github.com/dayvar14/tail@v0.0.0-20240222011302-f530c4fa0c9f/.github/workflows/ci.yml (about) 1 name: ci 2 on: [push, pull_request] 3 jobs: 4 test-build: 5 strategy: 6 matrix: 7 go-version: [1.21.x, 1.20.x, 1.19.x, 1.18.x] 8 os: [ubuntu-20.04, macos-latest, windows-latest] 9 runs-on: ${{ matrix.os }} 10 steps: 11 - name: Install Go 12 uses: actions/setup-go@v2 13 with: 14 go-version: ${{ matrix.go-version }} 15 - name: Checkout code 16 uses: actions/checkout@v2 17 with: 18 fetch-depth: 0 19 - name: Test 20 run: go test -race -v -timeout 2m ./... 21 - name: Build lib 22 run: go build 23 - name: Build cmd 24 run: go build 25 working-directory: ./cmd/gotail