github.com/waldiirawan/apm-agent-go/v2@v2.2.2/.github/workflows/ci.yml (about) 1 name: ci 2 3 on: 4 workflow_dispatch: 5 push: 6 branches: 7 - main 8 paths-ignore: 9 - '**.md' 10 - '**.asciidoc' 11 pull_request: 12 paths-ignore: 13 - '**.md' 14 - '**.asciidoc' 15 16 # limit the access of the generated GITHUB_TOKEN 17 permissions: 18 contents: read 19 20 jobs: 21 precheck: 22 runs-on: ubuntu-latest 23 timeout-minutes: 30 24 steps: 25 - uses: actions/checkout@v3 26 - uses: actions/setup-go@v3 27 with: 28 go-version: stable 29 cache: true 30 cache-dependency-path: '**/go.sum' 31 - name: Precheck 32 run: make precheck 33 34 test: 35 runs-on: ubuntu-latest 36 timeout-minutes: 30 37 strategy: 38 matrix: 39 go-version: [ "1.15", "1.16", "1.17", "1.18", "1.19", "oldstable", "stable" ] 40 steps: 41 - uses: actions/checkout@v3 42 - uses: actions/setup-go@v3 43 with: 44 go-version: ${{ matrix.go-version }} 45 cache: true 46 cache-dependency-path: '**/go.sum' 47 - name: Unit tests 48 run: make test 49 50 coverage: 51 runs-on: ubuntu-latest 52 timeout-minutes: 20 53 steps: 54 - uses: actions/checkout@v3 55 - uses: actions/setup-go@v3 56 with: 57 go-version: stable 58 cache: true 59 cache-dependency-path: '**/go.sum' 60 - name: Integration tests 61 run: | 62 ./scripts/docker-compose-testing run -T --rm trace-context-harness 63 ./scripts/docker-compose-testing up -d --build 64 ./scripts/docker-compose-testing run -T --rm go-agent-tests make coverage GOFLAGS=-v 65 66 test-windows: 67 runs-on: windows-latest 68 timeout-minutes: 20 69 steps: 70 - uses: actions/checkout@v3 71 - uses: actions/setup-go@v3 72 with: 73 go-version-file: go.mod 74 cache: true 75 cache-dependency-path: '**/go.sum' 76 - name: Unit tests 77 run: go test -v ./... 78 79 test-macos: 80 runs-on: macos-12 81 timeout-minutes: 20 82 steps: 83 - uses: actions/checkout@v3 84 - uses: actions/setup-go@v3 85 with: 86 go-version: '1.19' 87 cache: true 88 cache-dependency-path: '**/go.sum' 89 - name: Unit tests 90 run: make test