chore(release): remove release-as version pin #172
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
| on: | |
| push: | |
| branches: | |
| - master | |
| pull_request: | |
| branches: | |
| - master | |
| name: run tests | |
| jobs: | |
| lint: | |
| name: lint | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: golangci-lint | |
| uses: golangci/golangci-lint-action@v4 | |
| release-check: | |
| name: release config | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: actions/setup-go@v5 | |
| with: | |
| go-version: "1.24" | |
| - uses: goreleaser/goreleaser-action@v5 | |
| with: | |
| distribution: goreleaser | |
| version: "v2.14.1" | |
| args: check | |
| compile-32bit: | |
| name: compile (32-bit) | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: actions/setup-go@v5 | |
| with: | |
| go-version: "1.24" | |
| - name: Build for linux/arm (32-bit) | |
| run: GOARCH=arm GOOS=linux go build ./... | |
| test: | |
| strategy: | |
| matrix: | |
| go-version: [1.x, 1.17.x] | |
| platform: [ubuntu-latest, macos-latest, windows-latest] | |
| runs-on: ${{ matrix.platform }} | |
| steps: | |
| - name: Install Go | |
| if: success() | |
| uses: actions/setup-go@v5 | |
| with: | |
| go-version: ${{ matrix.go-version }} | |
| - name: Checkout code | |
| uses: actions/checkout@v4 | |
| with: | |
| path: src/github.com/guptarohit/asciigraph | |
| - name: Set up GOPATH | |
| shell: bash | |
| run: | | |
| echo "GOPATH=${{ github.workspace }}" >> "$GITHUB_ENV" | |
| echo "${{ github.workspace }}/bin" >> "$GITHUB_PATH" | |
| - name: Run tests | |
| run: go test -v -race -covermode atomic -coverprofile=covprofile ./. | |
| working-directory: src/github.com/guptarohit/asciigraph | |
| - name: Run benchmarks | |
| run: go test -v -run=XXX -bench=. | |
| working-directory: src/github.com/guptarohit/asciigraph | |
| - name: Send coverage | |
| uses: shogo82148/actions-goveralls@v1 | |
| with: | |
| path-to-profile: covprofile | |
| working-directory: src/github.com/guptarohit/asciigraph | |
| flag-name: Go-${{ matrix.go }} | |
| parallel: true | |
| # notifies that all test jobs are finished. | |
| finish: | |
| needs: test | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: shogo82148/actions-goveralls@v1 | |
| with: | |
| parallel-finished: true |