diff options
author | Matthew Sotoudeh <matthewsot@outlook.com> | 2020-11-10 14:09:23 -0800 |
---|---|---|
committer | Matthew Sotoudeh <matthewsot@outlook.com> | 2020-11-10 14:09:23 -0800 |
commit | ccf79249ffd822be2a806c2789ff4cdf63bfb217 (patch) | |
tree | cf666e33a8e6f370f4300c777ae2db2fccb76044 | |
parent | 904094281b062aff3445ca41fec57e4cfd0f563d (diff) |
Sifter test case
-rw-r--r-- | .github/workflows/test_sifter.yml | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/.github/workflows/test_sifter.yml b/.github/workflows/test_sifter.yml new file mode 100644 index 0000000..42ff5bf --- /dev/null +++ b/.github/workflows/test_sifter.yml @@ -0,0 +1,30 @@ +# Adapted from: https://github.com/pubref/rules_protobuf/blob/master/.travis.yml +name: Test Sifter + +on: pull_request + +jobs: + test-sifter: + runs-on: [self-hosted, linux, x64] + steps: + - uses: actions/checkout@v1 + - name: Build and test Sifter. + run: | + V=3.7.0 + OS=linux + ARCH=x86_64 + GH_BASE="https://github.com/bazelbuild/bazel/releases/download/$V" + GH_ARTIFACT="bazel-$V-installer-$OS-$ARCH.sh" + CI_BASE="http://ci.bazel.io/job/Bazel/JAVA_VERSION=1.8,PLATFORM_NAME=$OS-$ARCH/lastSuccessfulBuild/artifact/output/ci" + CI_ARTIFACT="bazel--installer.sh" + URL="$GH_BASE/$GH_ARTIFACT" + echo $URL + wget -O install.sh $URL + chmod +x install.sh + ./install.sh --user + rm -f install.sh + git clone https://github.com/95616ARG/bazel_python.git + cd bazel_python + echo y | ./setup_python.sh 3.7.4 $HOME/.bazel_python + cd .. && rm -rf bazel_python + /home/runner/bin/bazel test //... |