Skip to content

Pr/joamaki/fix pr fails #158

Pr/joamaki/fix pr fails

Pr/joamaki/fix pr fails #158

Workflow file for this run

name: pr
on:
pull_request:
branches:
- main
env:
GO_VERSION: 1.23
jobs:
test:
runs-on: ubuntu-latest
strategy:
fail-fast: false
steps:
- uses: actions/setup-go@v2
with:
go-version: ${{ env.GO_VERSION }}
- uses: actions/checkout@v3
with:
fetch-depth: 0
- name: test
run: |
echo '```' > results.comment
echo "$ make test" >> results.comment
make test 2>&1 | tee test.out
cat test.out | tail -20 >> results.comment
echo "-----" >> results.comment
- name: test-race
run: |
make test-race
- name: bench
run: |
echo "$ make bench" >> results.comment
make bench 2>&1 | tee bench.out
cat bench.out >> results.comment
echo '```' >> results.comment
- name: results
uses: thollander/actions-comment-pull-request@v2
with:
comment_tag: results
filePath: results.comment