diff --git a/.github/workflows/pr.yml b/.github/workflows/pr.yml new file mode 100644 index 000000000000..d6da2199954d --- /dev/null +++ b/.github/workflows/pr.yml @@ -0,0 +1,31 @@ +--- +name: PR build +on: + push: +# branches: +# - master + pull_request: +jobs: + build: + runs-on: ${{ matrix.os }} + strategy: + matrix: + golang: + - 1.12 + - 1.13 + - 1.14 + os: + - windows-latest + - ubuntu-latest + - macos-latest + steps: + - uses: actions/checkout@v2 + - name: Check if README.md is up to date + run: time make fast_check_generated + - name: Run tests + run: > + docker run -t + -v ${{ github.workspace }}:/go + golang:${{ matrix.golang }} + time make tests +