-
Notifications
You must be signed in to change notification settings - Fork 0
61 lines (54 loc) · 1.87 KB
/
ach.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
name: ACH Benchmarks
on:
workflow_dispatch:
schedule:
- cron: "0 0 * * *"
permissions:
deployments: write
contents: write
jobs:
run:
name: Run
runs-on: ubuntu-latest
timeout-minutes: 10
steps:
- uses: actions/checkout@v4
with:
repository: 'moov-io/benchmarks'
- uses: actions/checkout@v4
with:
repository: 'moov-io/ach'
path: './ach/'
- uses: actions/setup-go@v5
with:
go-version: "stable"
- name: moov-io/ach
run: |
cd ./ach/
go test . -bench BenchmarkBuildFile -benchmem > output.txt
go test . -bench Read -benchmem >> output.txt
go test . -bench Write -benchmem >> output.txt
go test . -bench AlphaField -benchmem >> output.txt
go test . -bench NumericField -benchmem >> output.txt
go test . -bench ParseNumField -benchmem >> output.txt
go test . -bench ParseStringField -benchmem >> output.txt
go test . -bench BenchmarkMergeFiles -benchmem >> output.txt
go test . -bench BenchmarkCalculateCheckDigit -benchmem >> output.txt
go test ./server/ -bench Benchmark -benchmem >> output.txt
- name: Store benchmark result
uses: benchmark-action/github-action-benchmark@v1
with:
name: My Project Go Benchmark
tool: 'go'
output-file-path: ./ach/output.txt
github-token: ${{ secrets.GITHUB_TOKEN }}
skip-fetch-gh-pages: true
auto-push: true
# Show alert with commit comment on detecting possible performance regression
alert-threshold: '120%'
comment-on-alert: true
fail-on-alert: true
alert-comment-cc-users: '@adamdecaf'
# Update files on master branch
gh-pages-branch: master
benchmark-data-dir-path: docs/bench/ach/