File: unit-tests.yml

package info (click to toggle)
golang-github-cactus-mlog 1.0.10-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 272 kB
  • sloc: makefile: 2
file content (32 lines) | stat: -rw-r--r-- 617 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
name: unit-tests
on:
  push:
  pull_request:
    branches:
    - master

jobs:
  build:
    name: Build
    strategy:
      matrix:
        goVer: ["1.16.x", "1.21.x"]
        platform: [ubuntu-latest]
    runs-on: ${{ matrix.platform }}
    steps:
    - name: Setup Go ${{ matrix.goVer }}
      uses: actions/setup-go@v1
      with:
        go-version: ${{ matrix.goVer }}
      id: go

    - name: Src Checkout
      uses: actions/checkout@v1
      with:
        fetch-depth: 1

    - name: Tests
      env:
        GO111MODULE: "on"
        GOPROXY: "https://proxy.golang.org"
      run: go test -v -cpu=1,2 ./...