Skip to content

Issue #40 : Changes call .Plot on main.go to .PlotMany #94

Issue #40 : Changes call .Plot on main.go to .PlotMany

Issue #40 : Changes call .Plot on main.go to .PlotMany #94

Workflow file for this run

on:
push:
branches:
- master
pull_request:
branches:
- master
name: run tests
jobs:
lint:
name: lint
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: golangci-lint
uses: golangci/golangci-lint-action@v2
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@v4
with:
go-version: ${{ matrix.go-version }}
- name: Checkout code
uses: actions/checkout@v3
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