Codebase list golang-github-minio-sha256-simd / upstream/0.1.1+git20190917.f675151 .github / workflows / go.yml
upstream/0.1.1+git20190917.f675151

Tree @upstream/0.1.1+git20190917.f675151 (Download .tar.gz)

go.yml @upstream/0.1.1+git20190917.f675151raw · history · blame

name: Go

on:
  pull_request:
    branches:
    - master
  push:
    branches:
    - master

jobs:
 build:
    name: Test on Go ${{ matrix.go-version }} and ${{ matrix.os }}
    runs-on: ${{ matrix.os }}
    strategy:
      max-parallel: 4
      matrix:
        go-version: [1.13.x, 1.12.x]
        os: [ubuntu-latest, windows-latest]
    steps:
    - name: Set up Go ${{ matrix.go-version }}
      uses: actions/setup-go@v1
      with:
        go-version: ${{ matrix.go-version }}
      id: go

    - name: Check out code into the Go module directory
      uses: actions/checkout@v1

    - name: Build on ${{ matrix.os }}
      if: matrix.os == 'windows-latest'
      run: go test -race -v ./...
    - name: Build on ${{ matrix.os }}      
      if: matrix.os == 'ubuntu-latest'
      run: |
        diff -au <(gofmt -d .) <(printf "")
        go test -race -v ./...
        go vet -asmdecl .
        ./test-architectures.sh