Skip to content

Run CI on both push to origin branches and pull requests (#360) #40

Run CI on both push to origin branches and pull requests (#360)

Run CI on both push to origin branches and pull requests (#360) #40

Workflow file for this run

name: ci
on:
push:
branches:
- master
pull_request:
jobs:
ci-job:
runs-on: ubuntu-latest
strategy:
matrix:
go: [ '1.7.x', '1.18', '1.19', '1.20', '1.21', '1.x' ]
name: Go ${{ matrix.go }}
steps:
- uses: actions/checkout@v4
- name: Use go
uses: actions/setup-go@v5
with:
go-version: ${{ matrix.go }}
- run: go build .
- run: go test -v