name: CI

on: [push, pull_request]

env:
  GO11MODULE: on

jobs:
  build:
    name: Build
    runs-on: ubuntu-latest

    steps:
    - name: Set up Go
      uses: actions/setup-go@v2-beta
      with:
        go-version: '^1.7'

    - name: Check out code
      uses: actions/checkout@9a3a9ade
      with:
        submodules: true

    - name: Clean up extra files
      run: rm ./testcases/*.go

    - name: Run golangci-lint
      uses: actions-contrib/golangci-lint@v1
      env:
        GOROOT: ''
      with:
        golangci_lint_version: 'v1.23.6'

    - name: Download deps
      run: go mod download

    - name: Run tests
      run: go test -race -v ./...

    - name: Submit coverage report
      env:
        COVERALLS_TOKEN: ${{ secrets.GITHUB_TOKEN }}
      run: |
        go test -covermode=count -coverprofile=profile.cov
        GO111MODULE=off go get github.com/mattn/goveralls
        $(go env GOPATH)/bin/goveralls -coverprofile=profile.cov -service=github


name: CI

on: [push, pull_request]

env:
  GO11MODULE: on

jobs:
  build:
    name: Build
    runs-on: ubuntu-latest

    steps:
    - name: Set up Go
      uses: actions/setup-go@v2
      with:
        go-version: '^1.7'

    - name: Check out code
      uses: actions/checkout@v2
      with:
        submodules: true

    - name: Clean up extra files
      run: rm ./testcases/*.go
      
    - name: Download deps
      run: go mod download

    - name: Run golangci-lint
      uses: actions-contrib/golangci-lint@v1
      env:
        GOROOT: ''
      with:
        golangci_lint_version: 'v1.23.6'

    - name: Run tests
      run: go test -race -v ./...

    - name: Submit coverage report
      env:
        COVERALLS_TOKEN: ${{ secrets.GITHUB_TOKEN }}
      run: |
        go test -covermode=count -coverprofile=profile.cov
        GO111MODULE=off go get github.com/mattn/goveralls
        $(go env GOPATH)/bin/goveralls -coverprofile=profile.cov -service=github


Update to stable versions of GitHub Actions
Update to stable versions of GitHub Actions