-
Notifications
You must be signed in to change notification settings - Fork 385
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
139 changed files
with
6,974 additions
and
504 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 |
---|---|---|
@@ -0,0 +1,8 @@ | ||
# Make sure this is the top-level editorconfig | ||
# https://editorconfig.org/ | ||
root = true | ||
|
||
# GitHub Actions Workflows | ||
[workflows/**.yml] | ||
indent_style = space | ||
indent_size = 2 |
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,4 +1,4 @@ | ||
name: auto-author-assign | ||
name: Auto Assign PR Author | ||
|
||
on: | ||
pull_request_target: | ||
|
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
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,30 +1,54 @@ | ||
name: contribs | ||
name: Contribs | ||
|
||
on: | ||
push: | ||
branches: | ||
- master | ||
workflow_dispatch: | ||
pull_request: | ||
paths: | ||
- contribs/** | ||
workflow_dispatch: | ||
|
||
jobs: | ||
setup: | ||
runs-on: ubuntu-latest | ||
outputs: | ||
programs: ${{ steps.set-matrix.outputs.programs }} | ||
go-versions: ${{ steps.get-go-versions.outputs.go-versions }} | ||
steps: | ||
- uses: actions/checkout@v4 | ||
|
||
- id: set-matrix | ||
run: echo "::set-output name=programs::$(ls -d contribs/*/ | cut -d/ -f2 | jq -R -s -c 'split("\n")[:-1]')" | ||
run: | | ||
echo "::set-output name=programs::$(ls -d contribs/*/ | cut -d/ -f2 | jq -R -s -c 'split("\n")[:-1]')" | ||
- id: get-go-versions | ||
run: | | ||
contribs_programs=$(ls -d contribs/*/ | cut -d/ -f2) | ||
versions_map="{" | ||
for p in $contribs_programs; do | ||
# Fetch the go version of the contribs entry, and save it | ||
# to a versions map we can reference later in the workflow | ||
go_version=$(grep "^go [0-9]" contribs/$p/go.mod | cut -d ' ' -f2) | ||
versions_map="$versions_map\"$p\":\"$go_version\"," | ||
done | ||
# Close out the JSON | ||
versions_map="${versions_map%,}" | ||
versions_map="$versions_map}" | ||
echo "::set-output name=go-versions::$versions_map" | ||
main: | ||
needs: setup | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
program: ${{ fromJson(needs.setup.outputs.programs) }} | ||
fail-fast: false | ||
matrix: | ||
program: ${{ fromJson(needs.setup.outputs.programs) }} | ||
name: Run Main | ||
uses: ./.github/workflows/main_template.yml | ||
with: | ||
modulepath: contribs/${{ matrix.program }} | ||
go-version: ${{ (fromJson(needs.setup.outputs.go-versions))[matrix.program] }} | ||
secrets: | ||
codecov-token: ${{ secrets.CODECOV_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
4 changes: 2 additions & 2 deletions
4
.github/workflows/docs.yml → .github/workflows/docs-linter.yml
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,8 +1,8 @@ | ||
name: "docs / lint" | ||
name: Docs Linter | ||
|
||
on: | ||
push: | ||
paths: | ||
branches: | ||
- master | ||
pull_request: | ||
paths: | ||
|
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.