TPT-4319: change swap_size to pointer type and update related logic (… #902
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # | |
| # This GitHub action runs Packer go tests across | |
| # multiple runners. | |
| # | |
| name: "Go Test Multi-Platform" | |
| on: | |
| push: | |
| branches: | |
| - 'main' | |
| - 'dev' | |
| pull_request: | |
| permissions: | |
| contents: read | |
| jobs: | |
| darwin-go-tests: | |
| runs-on: macos-latest | |
| name: Darwin Go tests | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - uses: actions/setup-go@v6 | |
| with: | |
| go-version: stable | |
| - run: | | |
| go test -race -count 1 ./... -timeout=3m -v | |
| windows-go-tests: | |
| runs-on: windows-latest | |
| name: Windows Go tests | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - uses: actions/setup-go@v6 | |
| with: | |
| go-version: stable | |
| # Running unit tests directly with `go test` due to gofmt/gofumpt issues in Windows | |
| - run: | | |
| go test -race -count 1 ./... -timeout=3m -v | |
| linux-go-tests: | |
| runs-on: ubuntu-latest | |
| name: Linux Go tests | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - uses: actions/setup-go@v6 | |
| with: | |
| go-version: stable | |
| - run: | | |
| make unit-test |