Skip to content

Set and Map and Docs! #30

Set and Map and Docs!

Set and Map and Docs! #30

Workflow file for this run

name: pr
on:
pull_request:
branches:
- main
env:
GO_VERSION: 1.22.2
jobs:
test:
runs-on: ubuntu-latest
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