forked from GoogleContainerTools/distroless
-
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.
Merge pull request GoogleContainerTools#760 from imjasonh/main-actions
Run GitHub Actions on changes to main branch
- Loading branch information
Showing
24 changed files
with
29 additions
and
556 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 |
---|---|---|
|
@@ -2,7 +2,7 @@ name: Buildifier | |
|
||
on: | ||
pull_request: | ||
branches: [ 'master' ] | ||
branches: [ 'main' ] | ||
|
||
jobs: | ||
|
||
|
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,36 +1,34 @@ | ||
name: CI | ||
|
||
on: | ||
workflow_dispatch: # Allow manual runs. | ||
pull_request: | ||
branches: [ 'master' ] | ||
branches: [ 'main' ] | ||
push: | ||
branches: [ 'master' ] | ||
branches: [ 'main' ] | ||
|
||
jobs: | ||
ci: | ||
name: CI | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/setup-go@v2 | ||
with: | ||
go-version: 1.15.x | ||
- uses: actions/checkout@v2 | ||
- uses: bazelbuild/setup-bazelisk@v1 | ||
- name: Mount bazel cache | ||
uses: actions/cache@v2 | ||
with: | ||
path: "~/.cache/bazel" | ||
key: bazel | ||
|
||
- name: Build and test | ||
run: | | ||
eval $(go env) | ||
# install bazelisk as bazel to install the appropriate bazel version | ||
wget https://github.com/bazelbuild/bazelisk/releases/download/v1.6.1/bazelisk-linux-${GOARCH} && chmod +x bazelisk-linux-${GOARCH} && mv bazelisk-linux-${GOARCH} $HOME/bin/bazel | ||
CPU=k8 | ||
bazel clean --curses=no | ||
bazel build --cpu=${CPU} --curses=no //package_manager:dpkg_parser.par | ||
bazel build --cpu=${CPU} --curses=no //... | ||
# Build all targets tagged with our architecture: | ||
bazel build --cpu=${CPU} --curses=no $(bazel query 'attr("tags", "'${GOARCH}'", "//...")') | ||
# Run all tests not tagged as "manual": | ||
bazel test --cpu=${CPU} --curses=no --test_output=errors --test_timeout=900 //... | ||
# Run all tests tagged with our architecture: | ||
bazel test --cpu=${CPU} --curses=no --test_output=errors --test_timeout=900 $(bazel query 'attr("tags", "'${GOARCH}'", "//...")') | ||
set -ex | ||
bazel build --curses=no //package_manager:dpkg_parser.par | ||
bazel build --curses=no //... | ||
bazel test --curses=no --test_output=errors //... | ||
# Ignore java8 and experimental targets, which might not pass. | ||
# TODO: Fix or remove these exceptions. | ||
targets=$(bazel query 'attr("tags", "'amd64'", "//...")' | grep -v java8 | grep -v experimental) | ||
bazel build --curses=no ${targets} | ||
bazel test --curses=no --test_output=errors ${targets} |
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 was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Binary file not shown.
Binary file not shown.
9 changes: 0 additions & 9 deletions
9
examples/dotnet/bin/Release/netcoreapp2.0/hello.runtimeconfig.dev.json
This file was deleted.
Oops, something went wrong.
9 changes: 0 additions & 9 deletions
9
examples/dotnet/bin/Release/netcoreapp2.0/hello.runtimeconfig.json
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.