| 1 | on: |
| 2 | push: |
| 3 | branches: |
| 4 | - master |
| 5 | - v1 |
| 6 | pull_request: |
| 7 | branches: |
| 8 | - "**" |
| 9 | name: Test |
| 10 | jobs: |
| 11 | tests: |
| 12 | strategy: |
| 13 | matrix: |
| 14 | go-version: [1.14.x, 1.15.x, 1.16.x] |
| 15 | os: [ubuntu-latest] |
| 16 | runs-on: ${{ matrix.os }} |
| 17 | steps: |
| 18 | - name: Install Go |
| 19 | uses: actions/setup-go@v2 |
| 20 | with: |
| 21 | go-version: ${{ matrix.go-version }} |
| 22 | - name: Checkout code |
| 23 | uses: actions/checkout@v2 |
| 24 | - name: Test |
| 25 | run: make ci |
| 26 | golangci: |
| 27 | runs-on: ubuntu-latest |
| 28 | steps: |
| 29 | - uses: actions/checkout@v2 |
| 30 | - name: golangci-lint |
| 31 | uses: golangci/golangci-lint-action@v2 |