-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Format workflow files with prettier, use go1.20 for go.mod file
- Loading branch information
Showing
10 changed files
with
175 additions
and
171 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,23 @@ | ||
name: Auto labeler | ||
|
||
on: | ||
issues: | ||
types: [ opened, edited, milestoned ] | ||
pull_request_target: | ||
types: [ opened ] | ||
issues: | ||
types: [opened, edited, milestoned] | ||
pull_request_target: | ||
types: [opened] | ||
permissions: | ||
contents: read | ||
issues: write | ||
pull-requests: write | ||
statuses: write | ||
checks: write | ||
|
||
jobs: | ||
labeler: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Check Labels | ||
id: labeler | ||
uses: fuxingloh/multi-labeler@v2 | ||
with: | ||
github-token: ${{secrets.GITHUB_TOKEN}} | ||
labeler: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Check Labels | ||
id: labeler | ||
uses: fuxingloh/multi-labeler@v2 | ||
with: | ||
github-token: ${{secrets.GITHUB_TOKEN}} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,42 +4,48 @@ on: | |
- master | ||
- main | ||
paths: | ||
- '**' | ||
- '!docs/**' | ||
- '!**.md' | ||
- "**" | ||
- "!docs/**" | ||
- "!**.md" | ||
pull_request: | ||
paths: | ||
- '**' | ||
- '!docs/**' | ||
- '!**.md' | ||
- "**" | ||
- "!docs/**" | ||
- "!**.md" | ||
|
||
name: Benchmark | ||
jobs: | ||
Compare: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Install Go | ||
uses: actions/setup-go@v4 | ||
with: | ||
go-version: 1.21.x | ||
- name: Fetch Repository | ||
uses: actions/checkout@v3 | ||
- name: Run Benchmark | ||
run: set -o pipefail; go test ./... -benchmem -run=^$ -bench . | tee output.txt | ||
- name: Get Previous Benchmark Results | ||
uses: actions/cache@v3 | ||
with: | ||
path: ./cache | ||
key: ${{ runner.os }}-benchmark | ||
- name: Save Benchmark Results | ||
uses: benchmark-action/[email protected] | ||
with: | ||
tool: 'go' | ||
output-file-path: output.txt | ||
github-token: ${{ secrets.BENCHMARK_TOKEN }} | ||
benchmark-data-dir-path: 'benchmarks' | ||
fail-on-alert: true | ||
comment-on-alert: ${{ github.event_name == 'push' || github.event_name == 'workflow_dispatch' }} | ||
# Enable Job Summary for PRs - deactivated because of issues | ||
#summary-always: ${{ github.event_name != 'push' && github.event_name != 'workflow_dispatch' }} | ||
auto-push: ${{ github.event_name == 'push' || github.event_name == 'workflow_dispatch' }} | ||
save-data-file: ${{ github.event_name == 'push' || github.event_name == 'workflow_dispatch' }} | ||
- name: Fetch Repository | ||
uses: actions/checkout@v3 | ||
|
||
- name: Install Go | ||
uses: actions/setup-go@v4 | ||
with: | ||
# NOTE: Keep this in sync with the version from go.mod | ||
go-version: "1.20.x" | ||
|
||
- name: Run Benchmark | ||
run: set -o pipefail; go test ./... -benchmem -run=^$ -bench . | tee output.txt | ||
|
||
- name: Get Previous Benchmark Results | ||
uses: actions/cache@v3 | ||
with: | ||
path: ./cache | ||
key: ${{ runner.os }}-benchmark | ||
|
||
- name: Save Benchmark Results | ||
uses: benchmark-action/[email protected] | ||
with: | ||
tool: "go" | ||
output-file-path: output.txt | ||
github-token: ${{ secrets.BENCHMARK_TOKEN }} | ||
benchmark-data-dir-path: "benchmarks" | ||
fail-on-alert: true | ||
comment-on-alert: ${{ github.event_name == 'push' || github.event_name == 'workflow_dispatch' }} | ||
# Enable Job Summary for PRs - deactivated because of issues | ||
#summary-always: ${{ github.event_name != 'push' && github.event_name != 'workflow_dispatch' }} | ||
auto-push: ${{ github.event_name == 'push' || github.event_name == 'workflow_dispatch' }} | ||
save-data-file: ${{ github.event_name == 'push' || github.event_name == 'workflow_dispatch' }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,26 +1,26 @@ | ||
name: Release Drafter | ||
|
||
on: | ||
push: | ||
# branches to consider in the event; optional, defaults to all | ||
branches: | ||
- master | ||
- main | ||
push: | ||
# branches to consider in the event; optional, defaults to all | ||
branches: | ||
- master | ||
- main | ||
|
||
jobs: | ||
update_release_draft: | ||
runs-on: ubuntu-latest | ||
steps: | ||
# (Optional) GitHub Enterprise requires GHE_HOST variable set | ||
#- name: Set GHE_HOST | ||
# run: | | ||
# echo "GHE_HOST=${GITHUB_SERVER_URL##https:\/\/}" >> $GITHUB_ENV | ||
update_release_draft: | ||
runs-on: ubuntu-latest | ||
steps: | ||
# (Optional) GitHub Enterprise requires GHE_HOST variable set | ||
#- name: Set GHE_HOST | ||
# run: | | ||
# echo "GHE_HOST=${GITHUB_SERVER_URL##https:\/\/}" >> $GITHUB_ENV | ||
|
||
# Drafts your next Release notes as Pull Requests are merged into "master" | ||
- uses: release-drafter/release-drafter@v5 | ||
# (Optional) specify config name to use, relative to .github/. Default: release-drafter.yml | ||
# with: | ||
# config-name: my-config.yml | ||
# disable-autolabeler: true | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
# Drafts your next Release notes as Pull Requests are merged into "master" | ||
- uses: release-drafter/release-drafter@v5 | ||
# (Optional) specify config name to use, relative to .github/. Default: release-drafter.yml | ||
# with: | ||
# config-name: my-config.yml | ||
# disable-autolabeler: true | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.