From 77d2a43191444542713a164d9ba3ad969b9f2b97 Mon Sep 17 00:00:00 2001 From: coffeegoddd Date: Fri, 5 Jan 2024 14:17:33 -0800 Subject: [PATCH] /.github/workflows/test-tbd-version.yaml: testing workflow changes --- .github/workflows/test-tbd-version.yaml | 28 +++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 .github/workflows/test-tbd-version.yaml diff --git a/.github/workflows/test-tbd-version.yaml b/.github/workflows/test-tbd-version.yaml new file mode 100644 index 00000000000..31f67e02cd7 --- /dev/null +++ b/.github/workflows/test-tbd-version.yaml @@ -0,0 +1,28 @@ +on: + push: + branches: + - 'db/test-tbd' + +jobs: + test-tbd: + name: Test TBD Writes + runs-on: ubuntu-22.04 + steps: + - name: Checkout code + uses: actions/checkout@v3 + - name: Set up Go 1.x + uses: actions/setup-go@v3 + with: + go-version: ^1.21 + - name: Set minver TBD to version + run: sed -i -e 's/minver:"TBD"/minver:"'"$NEW_VERSION"'"/' "$FILE" + env: + FILE: ${{ format('{0}/go/cmd/dolt/commands/sqlserver/yaml_config.go', github.workspace) }} + NEW_VERSION: "test-version-0.0.1" + - name: update minver_validation.txt + run: go run $MAIN_GO $FILE + env: + MAIN_GO: ${{ format('{0}/go/cmd/dolt/commands/sqlserver/testdata/genminver_validation/main.go', github.workspace) }} + FILE: ${{ format('{0}/go/cmd/dolt/commands/sqlserver/testdata/minver_validation.txt', github.workspace) }} + - name: show minver_validation.txt diff + run: git diff .