From 045ca8449b30a4aaf042f79939b04deefa5196d7 Mon Sep 17 00:00:00 2001 From: Aleksey Myasnikov Date: Mon, 20 Jan 2025 19:02:02 +0300 Subject: [PATCH] downgraded antlr-go version to v4.13.0 --- .github/workflows/tests.yml | 38 +++++++++---------------------------- go.mod | 12 ++++++++++-- go.sum | 18 ++++++++++++++---- 3 files changed, 33 insertions(+), 35 deletions(-) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 60921f2..0fd02e5 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -8,53 +8,33 @@ on: workflow_dispatch: jobs: - go: + go-tests: concurrency: group: go-tests-${{ github.event_name }}-${{ github.ref }}-${{ matrix.os }}-${{ matrix.go-version }} cancel-in-progress: true + strategy: fail-fast: false matrix: go-version: [1.22.x, 1.23.x] - os: [ubuntu] + os: [ubuntu, windows, macos] + runs-on: ${{ matrix.os }}-latest + steps: - name: Checkout code uses: actions/checkout@v4 + - name: Set up Go uses: actions/setup-go@v5 with: go-version: ${{ matrix.go-version }} cache: true + - name: Install dependencies run: | go get github.com/stretchr/testify@v1.10.0 go mod tidy + - name: Run tests - run: go test ./... - dotnet: - concurrency: - group: dotnet-tests-${{ github.event_name }}-${{ github.ref }}-${{ matrix.os }}-${{ matrix.dotnet-version }} - cancel-in-progress: true - strategy: - fail-fast: false - matrix: - os: [ubuntu] - dotnet-version: [ 6.0.x, 7.0.x ] - include: - - dotnet-version: 6.0.x - dotnet-target-framework: net6.0 - - dotnet-version: 7.0.x - dotnet-target-framework: net7.0 - runs-on: ${{ matrix.os }}-latest - steps: - - name: Checkout - uses: actions/checkout@v4 - - name: Setup dotnet - uses: actions/setup-dotnet@v4 - with: - dotnet-version: ${{ matrix.dotnet-version }} - - name: Test - run: | - cd tests - dotnet test -f ${{ matrix.dotnet-target-framework }} \ No newline at end of file + run: go test ./tests/... \ No newline at end of file diff --git a/go.mod b/go.mod index 683d101..2e64690 100644 --- a/go.mod +++ b/go.mod @@ -2,6 +2,14 @@ module github.com/ydb-platform/yql-parsers go 1.22 -require github.com/antlr4-go/antlr/v4 v4.13.1 +require ( + github.com/antlr4-go/antlr/v4 v4.13.0 + github.com/stretchr/testify v1.10.0 +) -require golang.org/x/exp v0.0.0-20240506185415-9bf2ced13842 // indirect +require ( + github.com/davecgh/go-spew v1.1.1 // indirect + github.com/pmezard/go-difflib v1.0.0 // indirect + golang.org/x/exp v0.0.0-20230515195305-f3d0a9c9a5cc // indirect + gopkg.in/yaml.v3 v3.0.1 // indirect +) diff --git a/go.sum b/go.sum index a4312cd..9fa28da 100644 --- a/go.sum +++ b/go.sum @@ -1,4 +1,14 @@ -github.com/antlr4-go/antlr/v4 v4.13.1 h1:SqQKkuVZ+zWkMMNkjy5FZe5mr5WURWnlpmOuzYWrPrQ= -github.com/antlr4-go/antlr/v4 v4.13.1/go.mod h1:GKmUxMtwp6ZgGwZSva4eWPC5mS6vUAmOABFgjdkM7Nw= -golang.org/x/exp v0.0.0-20240506185415-9bf2ced13842 h1:vr/HnozRka3pE4EsMEg1lgkXJkTFJCVUX+S/ZT6wYzM= -golang.org/x/exp v0.0.0-20240506185415-9bf2ced13842/go.mod h1:XtvwrStGgqGPLc4cjQfWqZHG1YFdYs6swckp8vpsjnc= +github.com/antlr4-go/antlr/v4 v4.13.0 h1:lxCg3LAv+EUK6t1i0y1V6/SLeUi0eKEKdhQAlS8TVTI= +github.com/antlr4-go/antlr/v4 v4.13.0/go.mod h1:pfChB/xh/Unjila75QW7+VU4TSnWnnk9UTnmpPaOR2g= +github.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c= +github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= +github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZbAQM= +github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4= +github.com/stretchr/testify v1.10.0 h1:Xv5erBjTwe/5IxqUQTdXv5kgmIvbHo3QQyRwhJsOfJA= +github.com/stretchr/testify v1.10.0/go.mod h1:r2ic/lqez/lEtzL7wO/rwa5dbSLXVDPFyf8C91i36aY= +golang.org/x/exp v0.0.0-20230515195305-f3d0a9c9a5cc h1:mCRnTeVUjcrhlRmO0VK8a6k6Rrf6TF9htwo2pJVSjIU= +golang.org/x/exp v0.0.0-20230515195305-f3d0a9c9a5cc/go.mod h1:V1LtkGg67GoY2N1AnLN78QLrzxkLyJw7RJb1gzOOz9w= +gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405 h1:yhCVgyC4o1eVCa2tZl7eS0r+SDo693bJlVdllGtEeKM= +gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0= +gopkg.in/yaml.v3 v3.0.1 h1:fxVm/GzAzEWqLHuvctI91KS9hhNmmWOoWu0XTYJS7CA= +gopkg.in/yaml.v3 v3.0.1/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM=