Skip to content

Refactor scip-ruby repo tests and add packaging coverage #667

Refactor scip-ruby repo tests and add packaging coverage

Refactor scip-ruby repo tests and add packaging coverage #667

Workflow file for this run

name: CI
on:
push:
branches:
- scip-ruby/master
pull_request:
branches:
- scip-ruby/master
jobs:
test:
runs-on: 'ubuntu-22.04'
steps:
- uses: actions/checkout@v4
- uses: ruby/setup-ruby@v1
# Keep in sync with release.yml
- name: Manually evict cache entry if applicable
run: ACCESS_TOKEN='${{ secrets.GITHUB_TOKEN }}' python3 .github/workflows/evict.py
- name: "🚀 Mount Bazel build cache"
uses: actions/cache@v4
with:
path: ~/bazelcache/build
key: bazel-build-${{ runner.os }}-${{ github.sha }}
restore-keys: |
bazel-build-${{ runner.os }}-
bazel-build-
- name: "🚀 Mount Bazel repo cache"
uses: actions/cache@v4
with:
path: ~/bazelcache/repos
key: bazel-repos-${{ runner.os }}-${{ hashFiles('WORKSPACE') }}
restore-keys: |
bazel-repos-${{ runner.os }}-
bazel-repos-
- name: "⚙️ Setup Bazel"
run: .github/workflows/setup-bazel.sh
- name: "🏗 Build"
run: ./bazel build //main:scip-ruby //test:scip_test_runner --config=dbg --execution_log_binary_file=log
- name: "🪵 Upload log"
uses: actions/upload-artifact@v4
with:
name: ci-build-log
path: log
- name: "🏋️‍♂️ Run tests"
run: ./bazel test //test/scip --config=dbg
- name: "🏋️‍♂️ Run repo tests"
run: ./bazel test //test/scip/repos --config=dbg
- name: "🏋️‍♂️ Run packaging tests"
run: ./bazel test //test/scip/packaging --config=dbg