install dev version in /usr/local/bin/ #40
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: Go CLI Test | |
| on: | |
| push: | |
| branches: [ "main" ] | |
| # Allows you to run this workflow manually from the Actions tab | |
| workflow_dispatch: | |
| jobs: | |
| test: | |
| runs-on: ubuntu-latest | |
| strategy: | |
| matrix: | |
| # Ubuntu 22.04 LTS uses go 1.18 | |
| # Debian 12 (bookworm) uses go 1.19 | |
| # Ubuntu 24.04 LTS uses go 1.22 | |
| # Debian 13 (trixie) uses 1.24 | |
| # Build uses 1.25 | |
| go-version: [1.18, 1.19, 1.22, 1.24, 1.25] | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v4 | |
| - name: Set up Go ${{ matrix.go-version }} | |
| uses: actions/setup-go@v5 | |
| with: | |
| go-version: ${{ matrix.go-version }} | |
| cache: false # cache not needed if there is no go.sum file | |
| # not needed without dependencies | |
| # - name: Install dependencies | |
| # run: go mod tidy | |
| - name: Run tests | |
| run: go test ./... -v | |