github.com/AbsaOSS/env-binder@v1.0.1/.github/workflows/build.yaml (about) 1 # Copyright 2021 The k8gb Contributors. 2 # 3 # Licensed under the Apache License, Version 2.0 (the "License"); 4 # you may not use this file except in compliance with the License. 5 # You may obtain a copy of the License at 6 # 7 # http://www.apache.org/licenses/LICENSE-2.0 8 # 9 # Unless required by applicable law or agreed to in writing, software 10 # distributed under the License is distributed on an "AS IS" BASIS, 11 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 # See the License for the specific language governing permissions and 13 # limitations under the License. 14 # 15 # Generated by GoLic, for more details see: https://github.com/AbsaOSS/golic 16 name: Build, Test 17 on: 18 push: 19 pull_request: 20 branches: 21 - master 22 23 jobs: 24 test-build: 25 name: Test 26 runs-on: ubuntu-latest 27 strategy: 28 matrix: 29 go: ["1.14", "1.15", "1.16", "1.17", "1.18"] 30 steps: 31 - name: Check out code 32 uses: actions/checkout@v3 33 - name: Set up Go 34 uses: actions/setup-go@v3 35 with: 36 go-version: ${{ matrix.go }} 37 id: go 38 39 - name: Install Dependencies 40 env: 41 GOPROXY: https://proxy.golang.org,direct 42 run: go mod download 43 44 - name: Test 45 run: go test -race ./... --cover