|
4 | 4 | tags: |
5 | 5 | - v* |
6 | 6 | branches: |
7 | | - - master |
| 7 | + - main |
8 | 8 | paths: |
9 | 9 | - "**" |
10 | 10 | - "!**.md" |
@@ -63,15 +63,15 @@ jobs: |
63 | 63 | run: git checkout ${{ github.event.pull_request.base.sha }} |
64 | 64 | if: github.event_name == 'pull_request' |
65 | 65 |
|
66 | | - - name: Cache go modules (master) |
| 66 | + - name: Cache go modules (main) |
67 | 67 | uses: actions/cache@v2.1.6 |
68 | 68 | if: github.event_name == 'pull_request' |
69 | 69 | with: |
70 | 70 | path: ~/go/pkg/mod |
71 | 71 | key: ${{ runner.os }}-go-${{ env.go_version }}-${{ env.json_cache-versions_go }}-${{ hashFiles('**/go.sum') }} |
72 | 72 | restore-keys: ${{ runner.os }}-go-${{ env.go_version }}-${{ env.json_cache-versions_go }}- |
73 | 73 |
|
74 | | - - name: Run benchmark (master) |
| 74 | + - name: Run benchmark (main) |
75 | 75 | run: make go.unittest | tee output_base.txt |
76 | 76 | if: github.event_name == 'pull_request' |
77 | 77 | working-directory: . |
|
81 | 81 | GO_TEST_OPTS: -bench=. -test.benchmem -cpuprofile cpu_base.prof -memprofile mem_base.prof -test.timeout=1200s -count=5 -tags "fts5 sqlite sqlite_unlock_notify" |
82 | 82 |
|
83 | 83 | - name: Benchstat |
84 | | - id: benchstat-master |
85 | | - if: github.ref == 'refs/heads/master' && github.event_name != 'pull_request' |
| 84 | + id: benchstat-main |
| 85 | + if: github.ref == 'refs/heads/main' && github.event_name != 'pull_request' |
86 | 86 | run: | |
87 | 87 | echo 'Benchmark report' >> $GITHUB_STEP_SUMMARY |
88 | 88 | echo '```' >> $GITHUB_STEP_SUMMARY |
@@ -194,11 +194,11 @@ jobs: |
194 | 194 |
|
195 | 195 | # upload arifacts |
196 | 196 | # |
197 | | - - name: upload artifact (master) |
| 197 | + - name: upload artifact (main) |
198 | 198 | uses: actions/upload-artifact@v3 |
199 | | - if: github.ref == 'refs/heads/master' |
| 199 | + if: github.ref == 'refs/heads/main' |
200 | 200 | with: |
201 | | - name: "bench-master" |
| 201 | + name: "bench-main" |
202 | 202 | path: go/pprof_html |
203 | 203 |
|
204 | 204 | - name: upload artifact (PR) |
|
0 commit comments