-
Notifications
You must be signed in to change notification settings - Fork 34
github-actions: for the CI #130
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
13 commits
Select commit
Hold shift + click to select a range
ceb4bbb
github-actions: for the CI
v1v c4378cb
add missing steps
v1v 8784ed3
use only github actions
v1v 922bc87
fix
v1v 5c9038d
dependabot
v1v 407e359
disable windows for now
v1v c256c81
change protoc path
v1v b2c10e4
Revert "use only github actions"
v1v 1e783cd
github-actions: enable windows
v1v 8ed9e74
leftover
v1v cbda909
skip for now
v1v 89f60fc
skip
v1v f8e4632
refactor
v1v File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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,21 @@ | ||
| --- | ||
| name: setup | ||
| description: Common tasks for preparing the environment | ||
|
|
||
| runs: | ||
| using: "composite" | ||
| steps: | ||
| - uses: actions/setup-go@v5 | ||
| if: runner.os != 'Windows' | ||
| with: | ||
| go-version-file: go.mod | ||
| cache: true | ||
| # See https://github.com/actions/setup-go/pull/515 | ||
| - uses: antontroshin/setup-go@bda02de8887c9946189f81e7e59512914aeb9ea4 | ||
| if: runner.os == 'Windows' | ||
| with: | ||
| go-version-file: go.mod | ||
| cache: true | ||
| - name: install mage | ||
| run: go install github.com/magefile/mage | ||
| shell: 'bash' | ||
This file contains hidden or 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,18 @@ | ||
| --- | ||
| version: 2 | ||
| updates: | ||
| - package-ecosystem: "github-actions" | ||
| directories: | ||
| - '/' | ||
| - '/.github/actions/*' | ||
| schedule: | ||
| interval: "weekly" | ||
| day: "sunday" | ||
| time: "22:00" | ||
| reviewers: | ||
| - "elastic/observablt-ci" | ||
| - "elastic/observablt-ci-contractors" | ||
| groups: | ||
| github-actions: | ||
| patterns: | ||
| - "*" |
This file contains hidden or 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,48 @@ | ||
| name: ci | ||
|
|
||
| on: | ||
| push: | ||
| pull_request: | ||
| merge_group: | ||
|
|
||
| # limit the access of the generated GITHUB_TOKEN | ||
| permissions: | ||
| contents: read | ||
|
|
||
| jobs: | ||
|
|
||
| lint: | ||
| strategy: | ||
| matrix: | ||
| os: ['ubuntu-latest', 'windows-latest'] | ||
| runs-on: ${{ matrix.os }} | ||
| steps: | ||
| - uses: actions/checkout@v4 | ||
| - uses: ./.github/actions/setup | ||
| - run: | | ||
| mage -debug check | ||
| go vet ./... | ||
|
|
||
| update: | ||
| runs-on: ubuntu-latest | ||
| steps: | ||
| - uses: actions/checkout@v4 | ||
| - uses: ./.github/actions/setup | ||
| - name: install protoc | ||
| run: | | ||
| curl -sSfL -o protoc.zip https://github.com/protocolbuffers/protobuf/releases/download/v3.19.4/protoc-3.19.4-linux-x86_64.zip | ||
| mkdir -p $GITHUB_WORKSPACE/.protoc | ||
| unzip -o protoc.zip -d $GITHUB_WORKSPACE/.protoc | ||
| echo "$GITHUB_WORKSPACE/.protoc/bin" >> $GITHUB_PATH | ||
|
|
||
| - run: mage -debug update | ||
|
|
||
| test: | ||
| strategy: | ||
| matrix: | ||
| os: ['ubuntu-latest', 'windows-latest'] | ||
| runs-on: ${{ matrix.os }} | ||
| steps: | ||
| - uses: actions/checkout@v4 | ||
| - uses: ./.github/actions/setup | ||
| - run: go test -v -race ./... |
This file contains hidden or 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 hidden or 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
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.