ci: re-run go generate against stable Go version as part of CI

For now we choose the latest version of Go at the time of writing,
1.14.3.

Change-Id: I4a1f2cc073eadf86cb8faf711246a3bd78154b7b
Reviewed-on: https://cue-review.googlesource.com/c/cue/+/6064
Reviewed-by: CUE cueckoo <cueckoo@gmail.com>
Reviewed-by: Marcel van Lohuizen <mpvl@golang.org>
diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml
index 056b573..580dcbf 100644
--- a/.github/workflows/test.yml
+++ b/.github/workflows/test.yml
@@ -17,7 +17,8 @@
     strategy:
       fail-fast: false
       matrix:
-        go-version: [1.13.x, 1.14.x]
+        # Use a stable version of 1.14.x for the go generate step below
+        go-version: [1.13.x, 1.14.3]
         platform: [ubuntu-latest, macos-latest, windows-latest]
     runs-on: ${{ matrix.platform }}
     steps:
@@ -37,6 +38,9 @@
         restore-keys: |
           ${{ runner.os }}-${{ matrix.go-version }}-go-
 
+    - name: Generate
+      run: go generate ./...
+
     - name: Test
       run: go test ./...
     - name: Test with -race
@@ -45,6 +49,9 @@
     - name: gorelease check
       run: go run -modfile=./.tools/go.mod golang.org/x/exp/cmd/gorelease
 
+    - name: Check that git is clean post generate and tests
+      run: test -z "$(git status --porcelain)" || (git status; git diff; false)
+
     - name: Pull this commit through the proxy on master
       if: github.ref == 'refs/heads/master'
       run: |
diff --git a/.github/workflows/test_dispatch.yml b/.github/workflows/test_dispatch.yml
index 1aa74fd..1c118a1 100644
--- a/.github/workflows/test_dispatch.yml
+++ b/.github/workflows/test_dispatch.yml
@@ -21,7 +21,8 @@
     strategy:
       fail-fast: false
       matrix:
-        go-version: [1.13.x, 1.14.x]
+        # Use a stable version of 1.14.x for the go generate step below
+        go-version: [1.13.x, 1.14.3]
         platform: [ubuntu-latest, macos-latest, windows-latest]
     runs-on: ${{ matrix.platform }}
     steps:
@@ -49,11 +50,20 @@
         restore-keys: |
           ${{ runner.os }}-${{ matrix.go-version }}-go-
 
+    - name: Generate
+      run: go generate ./...
+
     - name: Test
       run: go test ./...
     - name: Test with -race
       run: go test -race ./...
 
+    - name: gorelease check
+      run: go run golang.org/x/exp/cmd/gorelease
+
+    - name: Check that git is clean post generate and tests
+      run: test -z "$(git status --porcelain)" || (git status; git diff; false)
+
     - name: Post any failures for this matrix entry
       if: ${{ failure() }}
       run: >