diff --git a/.github/workflows/sizing_calc_unit_tests.yml b/.github/workflows/sizing_calc_unit_tests.yml new file mode 100644 index 0000000000..4e6192c4f9 --- /dev/null +++ b/.github/workflows/sizing_calc_unit_tests.yml @@ -0,0 +1,32 @@ +name: "sizing calculator unit tests" + +on: + push: + branches: + - main + paths: + - 'yb-voyager/src/migassessment/**' + pull_request: + branches: + - main + paths: + - 'yb-voyager/src/migassessment/**' + +jobs: + test: + runs-on: ubuntu-latest + + steps: + - name: Checkout repository + uses: actions/checkout@v2 + + - name: Set up Go + uses: actions/setup-go@v3 + with: + go-version: '^1.20' + + - name: Install dependencies + run: go mod tidy + + - name: Run tests + run: go test ./... -v