Skip to content
This repository has been archived by the owner on Jul 12, 2022. It is now read-only.

Commit

Permalink
Merge c23d941 into d87ffaa
Browse files Browse the repository at this point in the history
  • Loading branch information
rlespinasse committed Oct 1, 2020
2 parents d87ffaa + c23d941 commit f496ca8
Showing 1 changed file with 60 additions and 0 deletions.
60 changes: 60 additions & 0 deletions .github/workflows/go.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@
name: Go

on:
push:
branches: [ v0 ]
pull_request:
branches: [ v0 ]

jobs:

build:
name: Build
runs-on: ubuntu-latest
steps:
- name: Set up Go 1.x
uses: actions/setup-go@v2
with:
go-version: ^1.13
id: go

- name: Check out code into the Go module directory
uses: actions/checkout@v2

- name: Test
run: make test

benchmark:
name: Performance regression check
runs-on: ubuntu-latest
steps:
- name: Set up Go 1.x
uses: actions/setup-go@v2
with:
go-version: ^1.13
id: go

- name: Check out code into the Go module directory
uses: actions/checkout@v2

- name: Run benchmark
run: go test -bench 'Benchmark' | tee output.txt

- name: Download previous benchmark data
uses: actions/cache@v1
with:
path: ./cache
key: ${{ runner.os }}-benchmark

- name: Store benchmark result
# uses: rhysd/github-action-benchmark@v1
# Support go tabled benchmarks
# Waiting for https://github.com/rhysd/github-action-benchmark/pull/32
uses: kaancfidan/github-action-benchmark@fix/go-tabled-benchmarks
with:
tool: 'go'
output-file-path: output.txt
external-data-json-path: ./cache/benchmark-data.json
fail-on-alert: true
github-token: ${{ secrets.GITHUB_TOKEN }}
comment-on-alert: true

0 comments on commit f496ca8

Please sign in to comment.