...

Text file src/github.com/miekg/pkcs11/.github/workflows/go.yml

Documentation: github.com/miekg/pkcs11/.github/workflows

     1name: Go
     2on: [push, pull_request]
     3jobs:
     4
     5  build:
     6    name: Build and Test
     7    runs-on: ubuntu-latest
     8    strategy:
     9      matrix:
    10        go: [ 1.16.x, 1.17.x ]
    11    steps:
    12
    13    - name: Set up Go
    14      uses: actions/setup-go@v2
    15      with:
    16        go-version: ${{ matrix.go }}
    17
    18    - name: Check out code
    19      uses: actions/checkout@v2
    20
    21    - name: Build
    22      run: |
    23        sudo apt-get update
    24        sudo apt-get -y install libsofthsm2
    25        go build -v ./...
    26
    27    - name: Test
    28      run: |
    29        sudo apt-get update
    30        sudo apt-get -y install libsofthsm2
    31        go test -v ./...

View as plain text