Update CHANGELOG.md #92
This file contains 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 | |
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 |