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
name: "build and test" | |
on: | |
push: | |
branches: [ main, booking-main ] | |
pull_request: | |
branches: [ main ] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: bazelbuild/setup-bazelisk@v1 | |
- run: | |
set -x && \ | |
bazel build //... && \ | |
bazel test //... && \ | |
cd examples/bzlmod && \ | |
bazel run @//:bazeldnf -- fetch --repofile repo-configs/*.yaml && \ | |
bazel run :bazeldnf -- rpmtree --basesystem centos-release --repofile repo-configs/centos7.yaml --name centos7-rpm --bzlmod --lock-file rpmtree/centos7/rpm.json rpm && \ | |
bazel run :bazeldnf -- rpmtree --basesystem centos-release --repofile repo-configs/centos7.yaml --name centos7-perl --bzlmod --lock-file rpmtree/centos7/perl.json perl && \ | |
bazel build @centos7-rpm//... @centos7-perl//... ... | |
build-no-bzlmod: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: bazelbuild/setup-bazelisk@v1 | |
- run: bazel build --noenable_bzlmod //... && bazel test --noenable_bzlmod //... |