Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
27 changes: 20 additions & 7 deletions .github/workflows/go_build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,10 @@
# See the License for the specific language governing permissions and
# limitations under the License.

name: go_test
on: [push, pull_request]
name: CQL Testing and Analysis
on: [push, pull_request, workflow_dispatch]
permissions:
contents: read
jobs:

go_test:
Expand All @@ -24,10 +26,12 @@ jobs:
steps:

- name: Check out code
uses: actions/checkout@v6
uses: actions/checkout@d23441a48e516b6c34aea4fa41551a30e30af803 # v6.1.0
with:
persist-credentials: false

- name: Set up Go
uses: actions/setup-go@v6
uses: actions/setup-go@924ae3a1cded613372ab5595356fb5720e22ba16 # v6.5.0
with:
go-version-file: 'go.mod'
id: go
Expand All @@ -51,10 +55,12 @@ jobs:
steps:

- name: Check out code
uses: actions/checkout@v6
uses: actions/checkout@d23441a48e516b6c34aea4fa41551a30e30af803 # v6.1.0
with:
persist-credentials: false

- name: Set up Go
uses: actions/setup-go@v6
uses: actions/setup-go@924ae3a1cded613372ab5595356fb5720e22ba16 # v6.5.0
with:
go-version-file: 'go.mod'
id: go
Expand All @@ -68,4 +74,11 @@ jobs:

- name: Spec Test Coverage
run: |
go run tests/spectests/cmd/analyzer/analyzer.go
set -o pipefail
go run tests/spectests/cmd/analyzer/analyzer.go 2>&1 | tee analyzer-output.txt
{
echo '## CQL Test Analyzer Results'
echo '```'
cat analyzer-output.txt
echo '```'
} >> "$GITHUB_STEP_SUMMARY"
Loading