ci: adopt release-please for commit-driven versioning #74
Workflow file for this run
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
| name: Run Tests | |
| env: | |
| FORCE_JAVASCRIPT_ACTIONS_TO_NODE24: true | |
| on: | |
| pull_request: | |
| branches: [main, develop] | |
| jobs: | |
| build: | |
| runs-on: ${{ matrix.os }} | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| os: [ubuntu-latest, macos-latest] | |
| go-version: ['1.22', '1.23'] | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Set up Go ${{ matrix.go-version }} | |
| uses: actions/setup-go@v5 | |
| with: | |
| go-version: ${{ matrix.go-version }} | |
| - name: Build | |
| working-directory: go | |
| run: CGO_ENABLED=0 go build -o grn . | |
| - name: Verify binary | |
| working-directory: go | |
| run: ./grn --version | |
| - name: Run tests | |
| working-directory: go | |
| # Use the external (system) linker so test binaries get an LC_UUID load | |
| # command. Go 1.22's internal linker omits it, and recent macOS dyld | |
| # aborts such binaries ("missing LC_UUID load command"). CGO is enabled | |
| # so the system cc (present on both ubuntu and macos runners) links. | |
| run: CGO_ENABLED=1 go test -ldflags='-linkmode=external' ./... -v |