github.com/go-ego/cedar@v0.10.2/.github/workflows/go.yml (about)

     1  name: Go
     2  on: [push]
     3  jobs:
     4    test:
     5      # name: build
     6      strategy:
     7        matrix:
     8          # go: [1.12.x, 1.13.x]
     9          os: [macOS-latest, windows-latest, ubuntu-latest]
    10      runs-on: ${{ matrix.os }}
    11  
    12      steps:
    13        - name: Set up Go 1.15
    14          uses: actions/setup-go@v1
    15          with:
    16            go-version: 1.15
    17          id: go
    18  
    19        - name: Check out code into the Go module directory
    20          uses: actions/checkout@v1
    21  
    22        - name: Get dependencies
    23          run: |
    24            go get -v -t -d ./...
    25            # if [ -f Gopkg.toml ]; then
    26            #     curl https://raw.githubusercontent.com/golang/dep/master/install.sh | sh
    27            #     dep ensure
    28            # fi
    29  
    30        - name: Build
    31          run: go build -v .
    32        - name: Test
    33          run: go test -v .