github.com/simonmittag/ws@v1.1.0-rc.5.0.20210419231947-82b846128245/.github/workflows/main.yml (about)

     1  name: CI
     2  on:
     3    push:
     4      branches: [ master ]
     5    pull_request:
     6      branches: [ master ]
     7  jobs:
     8    test:
     9      strategy:
    10        matrix:
    11          os: [ ubuntu-latest, macos-latest, windows-latest ]
    12          go: [ 1.14.x, 1.15.x ]
    13      runs-on: ${{ matrix.os }}
    14      steps:
    15      - name: Checkout
    16        uses: actions/checkout@v2
    17  
    18      - name: Setup Go
    19        uses: actions/setup-go@v2
    20        with:
    21          go-version: ${{ matrix.go }}
    22  
    23      - name: Go Env
    24        run: |
    25          go env
    26  
    27      - name: Test
    28        run: |
    29          go test -v -race -cover ./...
    30  
    31      - name: Autobahn
    32        if: >-
    33          startsWith(matrix.os, 'ubuntu')
    34        env:
    35          CRYPTOGRAPHY_ALLOW_OPENSSL_102: yes
    36        run: |
    37          make test autobahn
    38  
    39      - name: Autobahn Report Artifact
    40        if: >-
    41          startsWith(matrix.os, 'ubuntu')
    42        uses: actions/upload-artifact@v2
    43        with:
    44          name: autobahn report ${{ matrix.go }} ${{ matrix.os }}
    45          path: autobahn/report
    46          retention-days: 7