go.undefinedlabs.com/scopeagent@v0.4.2/.github/workflows/go.yml (about)

     1  name: Go
     2  on: [push]
     3  jobs:
     4    test:
     5      name: Test
     6      strategy:
     7        matrix:
     8          go_version: [1.11, 1.12, 1.13, 1.14]
     9          os: [ubuntu-latest, windows-latest]
    10      runs-on: ${{ matrix.os }}
    11      steps:
    12        - name: Set up Go ${{ matrix.go_version }}
    13          uses: actions/setup-go@v1
    14          with:
    15            go-version: ${{ matrix.go_version }}
    16          id: go
    17  
    18        - name: Check out code into the Go module directory
    19          uses: actions/checkout@v1
    20  
    21        - name: Get dependencies
    22          run: go get -v -t -d ./...
    23  
    24        - name: Create log folder
    25          run: mkdir /home/runner/.scope-results
    26  
    27        - name: Test
    28          run: go test -v -race -covermode=atomic ./...
    29          env:
    30            SCOPE_DSN: ${{ secrets.SCOPE_DSN }}
    31            SCOPE_LOGGER_ROOT: /home/runner/.scope-results
    32            SCOPE_DEBUG: true
    33            SCOPE_RUNNER_ENABLED: true
    34            SCOPE_RUNNER_EXCLUDE_BRANCHES: master
    35            SCOPE_TESTING_FAIL_RETRIES: 3
    36            SCOPE_TESTING_PANIC_AS_FAIL: true
    37  
    38        - name: Go check benchmark
    39          run: go test ./instrumentation/gocheck -gocheck.b -v
    40          if: matrix.os == 'ubuntu-latest'
    41          env:
    42            SCOPE_DSN: ${{ secrets.SCOPE_DSN }}
    43            SCOPE_LOGGER_ROOT: /home/runner/.scope-results
    44            SCOPE_DEBUG: true
    45  
    46        - name: Upload Scope logs
    47          if: always()
    48          uses: actions/upload-artifact@v1
    49          with:
    50            name: Scope for Go logs
    51            path: /home/runner/.scope-results
    52  
    53    fossa:
    54      name: FOSSA
    55      runs-on: ubuntu-latest
    56      steps:
    57        - name: Set up Go 1.13
    58          uses: actions/setup-go@v1
    59          with:
    60            go-version: 1.13
    61          id: go
    62  
    63        - name: Check out code into the Go module directory
    64          uses: actions/checkout@v1
    65  
    66        - name: FOSSA check
    67          run: |
    68            curl -H 'Cache-Control: no-cache' https://raw.githubusercontent.com/fossas/fossa-cli/master/install.sh | bash
    69            fossa analyze
    70          env:
    71            FOSSA_API_KEY: ${{ secrets.FOSSA_API_KEY }}