-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
infra: WIP for pull request presubmit checks
- Loading branch information
1 parent
0ef853f
commit 75b1a87
Showing
3 changed files
with
104 additions
and
0 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
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,44 @@ | ||
# Postsubmit checks that run on the `main` branch after merge. | ||
name: "main" | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
|
||
concurrency: | ||
group: ${{ github.workflow }}.${{ github.ref }} | ||
|
||
jobs: | ||
bazel-builder: | ||
runs-on: | ||
- self-hosted | ||
- "os=linux" | ||
- "arch=x64" | ||
- "os_distribution=debian" | ||
- "revision=d04e89854b3931f4aaced77aa3a2fcad5834b3a6" | ||
timeout-minutes: 5 | ||
|
||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: run all tests | ||
run: | | ||
bazel test --config=postsubmit //... | ||
golang-builder: | ||
runs-on: | ||
- self-hosted | ||
- "os=linux" | ||
- "arch=x64" | ||
- "os_distribution=debian" | ||
- "revision=d04e89854b3931f4aaced77aa3a2fcad5834b3a6" | ||
timeout-minutes: 5 | ||
|
||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: build all | ||
run: | | ||
go build ./... | ||
- name: run all tests | ||
run: | | ||
go test ./... |
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,48 @@ | ||
# Presubmit checks for PRs | ||
name: "presubmit" | ||
|
||
on: | ||
# Trigger on pull request rather than push, so that we can control whether | ||
# checks are run on a given PR (allowing checks to run automatically on PR | ||
# updates from third parties can be a security issue). | ||
pull_request: | ||
|
||
concurrency: | ||
group: ${{ github.workflow }}.${{ github.ref }} | ||
cancel-in-progress: true | ||
|
||
jobs: | ||
bazel-builder: | ||
# TODO(scott): Move to CI runners | ||
runs-on: | ||
- self-hosted | ||
- "os=linux" | ||
- "arch=x64" | ||
- "os_distribution=debian" | ||
- "revision=d04e89854b3931f4aaced77aa3a2fcad5834b3a6" | ||
timeout-minutes: 5 | ||
|
||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: run all tests | ||
run: | | ||
bazel test --config=presubmit //... | ||
golang-builder: | ||
runs-on: | ||
- self-hosted | ||
- "os=linux" | ||
- "arch=x64" | ||
- "os_distribution=debian" | ||
- "revision=d04e89854b3931f4aaced77aa3a2fcad5834b3a6" | ||
timeout-minutes: 5 | ||
|
||
steps: | ||
- name: checkout | ||
uses: actions/checkout@v4 | ||
- name: build all | ||
run: | | ||
go build ./... | ||
- name: run all tests | ||
run: | | ||
go test ./... |