diff --git a/.buildkite/pipeline.yml b/.buildkite/pipeline.yml deleted file mode 100644 index 9633ab9..0000000 --- a/.buildkite/pipeline.yml +++ /dev/null @@ -1,13 +0,0 @@ -steps: - - command: 'bazel build -- //... \$(bazel query //... | grep -e "_container\$" -e "_container_push\$" -e "_layer" | while read target; do echo -\$target; done)' - label: 'FreeBSD' - agents: - - "os=freebsd" - - command: 'bazel build -- //... \$(bazel query //... | grep -e "_container\$" -e "_container_push\$" -e "_layer" | while read target; do echo -\$target; done)' - label: 'macOS' - agents: - - "os=darwin" - - command: 'bazel run @com_github_buildbarn_bb_deployments//ci:run-ci' - label: 'Linux' - agents: - - "os=linux" diff --git a/.github/workflows/CI.yaml b/.github/workflows/CI.yaml new file mode 100644 index 0000000..b95daff --- /dev/null +++ b/.github/workflows/CI.yaml @@ -0,0 +1,30 @@ +name: CI +on: + push: + branches: + - master + pull_request: + branches: + - master +jobs: + gofmt: + runs-on: ubuntu-latest + container: docker://golang:1.13 + steps: + - uses: actions/checkout@v1 + - name: run gofmt + run: test -z "$(gofmt -d . | tee /dev/stderr)" + gazelle: + runs-on: ubuntu-latest + container: docker://l.gcr.io/google/bazel:2.1.0 + steps: + - uses: actions/checkout@v1 + - name: run gazelle + run: bazel run :gazelle && git diff --exit-code HEAD -- + build: + runs-on: ubuntu-latest + container: docker://l.gcr.io/google/bazel:2.1.0 + steps: + - uses: actions/checkout@v1 + - name: build + run: bazel build //... diff --git a/pkg/buildevents/BUILD.bazel b/pkg/buildevents/BUILD.bazel index 5c5eedf..41f4e45 100644 --- a/pkg/buildevents/BUILD.bazel +++ b/pkg/buildevents/BUILD.bazel @@ -7,6 +7,7 @@ go_library( "nodes.go", "stream_parser.go", ], + foo='bar', importpath = "github.com/buildbarn/bb-browser/pkg/buildevents", visibility = ["//visibility:public"], deps = [