diff --git a/.github/workflows/gha-go-test.yaml b/.github/workflows/gha-go-test.yaml index 1808b3ed..71c03b7e 100644 --- a/.github/workflows/gha-go-test.yaml +++ b/.github/workflows/gha-go-test.yaml @@ -3,7 +3,7 @@ run-name: Running tests on: [push] jobs: test: - runs-on: ubuntu-latest + runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 - name: Set up Go @@ -13,12 +13,14 @@ jobs: - name: Run staticcheck env: SC_VERSION: 2023.1.7 - run: | + run: | make generate SC_URL="https://github.com/dominikh/go-tools/releases/download/$SC_VERSION/staticcheck_linux_amd64.tar.gz" wget -q ${SC_URL} -O - | tar -xzf - --strip-components 1 -C /usr/local/bin staticcheck/staticcheck make static - - name: Run test + - name: Run tests run: make test - name: Run race condition check run: make race + - name: Check Go files are properly formatted + run: test -z $(gofmt -l .) diff --git a/main.go b/main.go index 79e131b5..2beea45f 100644 --- a/main.go +++ b/main.go @@ -4,7 +4,6 @@ import ( "context" "flag" "fmt" - "github.com/artie-labs/reader/sources/mssql" "log/slog" "github.com/artie-labs/reader/config" @@ -14,6 +13,7 @@ import ( "github.com/artie-labs/reader/sources" "github.com/artie-labs/reader/sources/dynamodb" "github.com/artie-labs/reader/sources/mongo" + "github.com/artie-labs/reader/sources/mssql" "github.com/artie-labs/reader/sources/mysql" "github.com/artie-labs/reader/sources/postgres" "github.com/artie-labs/reader/writers"