Skip to content

Continuous Integration #1637

Continuous Integration

Continuous Integration #1637

Workflow file for this run

# Portions of this file are generated by the build.
#
# Note:
# - Modification to values outside of the matrix strategy sections should
# persist.
# - Comments and custom formatting will be lost.
name: Continuous Integration
"on":
pull_request:
branches:
- main
- test_main
schedule:
- cron: 13 11 * * *
workflow_dispatch: {}
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true
jobs:
all_ci_tests:
runs-on: ubuntu-22.04
needs:
- tidy_and_test_matrix
- integration_test_matrix
if: ${{ always() }}
steps:
- uses: cgrindel/gha_join_jobs@v1
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
integration_test_matrix:
strategy:
fail-fast: false
matrix:
include:
- test: '@@//examples/bzlformat:simple_test_bazel_.bazelversion'
runner: ubuntu-22.04
enable_bzlmod: false
- test: '@@//examples/bzlformat:simple_test_bazel_.bazelversion'
runner: ubuntu-22.04
enable_bzlmod: true
- test: '@@//examples/bzlformat:simple_test_bazel_.bazelversion'
runner: macos-13
enable_bzlmod: false
- test: '@@//examples/bzlformat:simple_test_bazel_.bazelversion'
runner: macos-13
enable_bzlmod: true
- test: '@@//examples/bzlformat:simple_test_bazel_6_4_0'
runner: ubuntu-22.04
enable_bzlmod: false
- test: '@@//examples/bzlformat:simple_test_bazel_6_4_0'
runner: ubuntu-22.04
enable_bzlmod: true
- test: '@@//examples/bzlformat:simple_test_bazel_6_4_0'
runner: macos-13
enable_bzlmod: false
- test: '@@//examples/bzlformat:simple_test_bazel_6_4_0'
runner: macos-13
enable_bzlmod: true
- test: '@@//examples/markdown:simple_test_bazel_.bazelversion'
runner: ubuntu-22.04
enable_bzlmod: false
- test: '@@//examples/markdown:simple_test_bazel_.bazelversion'
runner: ubuntu-22.04
enable_bzlmod: true
- test: '@@//examples/markdown:simple_test_bazel_.bazelversion'
runner: macos-13
enable_bzlmod: false
- test: '@@//examples/markdown:simple_test_bazel_.bazelversion'
runner: macos-13
enable_bzlmod: true
- test: '@@//examples/markdown:simple_test_bazel_6_4_0'
runner: ubuntu-22.04
enable_bzlmod: false
- test: '@@//examples/markdown:simple_test_bazel_6_4_0'
runner: ubuntu-22.04
enable_bzlmod: true
- test: '@@//examples/markdown:simple_test_bazel_6_4_0'
runner: macos-13
enable_bzlmod: false
- test: '@@//examples/markdown:simple_test_bazel_6_4_0'
runner: macos-13
enable_bzlmod: true
- test: '@@//examples/updatesrc:simple_test_bazel_.bazelversion'
runner: ubuntu-22.04
enable_bzlmod: false
- test: '@@//examples/updatesrc:simple_test_bazel_.bazelversion'
runner: ubuntu-22.04
enable_bzlmod: true
- test: '@@//examples/updatesrc:simple_test_bazel_.bazelversion'
runner: macos-13
enable_bzlmod: false
- test: '@@//examples/updatesrc:simple_test_bazel_.bazelversion'
runner: macos-13
enable_bzlmod: true
- test: '@@//examples/updatesrc:simple_test_bazel_6_4_0'
runner: ubuntu-22.04
enable_bzlmod: false
- test: '@@//examples/updatesrc:simple_test_bazel_6_4_0'
runner: ubuntu-22.04
enable_bzlmod: true
- test: '@@//examples/updatesrc:simple_test_bazel_6_4_0'
runner: macos-13
enable_bzlmod: false
- test: '@@//examples/updatesrc:simple_test_bazel_6_4_0'
runner: macos-13
enable_bzlmod: true
- test: '@@//examples:bzlmod_e2e_test_bazel_.bazelversion'
runner: ubuntu-22.04
enable_bzlmod: true
- test: '@@//examples:bzlmod_e2e_test_bazel_.bazelversion'
runner: macos-13
enable_bzlmod: true
- test: '@@//examples:bzlmod_e2e_test_bazel_6_4_0'
runner: ubuntu-22.04
enable_bzlmod: true
- test: '@@//examples:bzlmod_e2e_test_bazel_6_4_0'
runner: macos-13
enable_bzlmod: true
- test: '@@//tests/bzlformat_tests/tools_tests/missing_pkgs_tests:missing_pkgs_test_bazel_.bazelversion'
runner: ubuntu-22.04
enable_bzlmod: true
- test: '@@//tests/bzlformat_tests/tools_tests/missing_pkgs_tests:missing_pkgs_test_bazel_.bazelversion'
runner: macos-13
enable_bzlmod: true
- test: '@@//tests/bzlformat_tests/tools_tests/missing_pkgs_tests:missing_pkgs_test_bazel_6_4_0'
runner: ubuntu-22.04
enable_bzlmod: true
- test: '@@//tests/bzlformat_tests/tools_tests/missing_pkgs_tests:missing_pkgs_test_bazel_6_4_0'
runner: macos-13
enable_bzlmod: true
- test: '@@//tests/bzlrelease_tests/rules_tests/generate_release_notes_tests:generate_release_notes_test'
runner: ubuntu-22.04
enable_bzlmod: true
- test: '@@//tests/bzlrelease_tests/rules_tests/generate_workspace_snippet_tests:generate_workspace_snippet_test'
runner: ubuntu-22.04
enable_bzlmod: true
- test: '@@//tests/bzlrelease_tests/rules_tests/update_readme_tests:update_readme_test'
runner: ubuntu-22.04
enable_bzlmod: true
- test: '@@//tests/bzlrelease_tests/tools_tests:generate_gh_changelog_test'
runner: ubuntu-22.04
enable_bzlmod: true
- test: '@@//tests/bzlrelease_tests/tools_tests:generate_git_archive_test'
runner: ubuntu-22.04
enable_bzlmod: true
- test: '@@//tests/bzlrelease_tests/tools_tests:generate_release_notes_test'
runner: ubuntu-22.04
enable_bzlmod: true
- test: '@@//tests/bzlrelease_tests/tools_tests:generate_workspace_snippet_test'
runner: ubuntu-22.04
enable_bzlmod: true
- test: '@@//tests/bzltidy_tests:tidy_all_test'
runner: ubuntu-22.04
enable_bzlmod: true
- test: '@@//tests/bzltidy_tests:tidy_all_test'
runner: macos-13
enable_bzlmod: true
- test: '@@//tests/shlib_tests/lib_tests/git_tests:git_integration_test'
runner: ubuntu-22.04
enable_bzlmod: true
- test: '@@//tests/shlib_tests/lib_tests/github_tests:get_gh_auth_status_test'
runner: ubuntu-22.04
enable_bzlmod: true
- test: '@@//tests/shlib_tests/lib_tests/github_tests:get_gh_changelog_test'
runner: ubuntu-22.04
enable_bzlmod: true
- test: '@@//tests/updatesrc_tests:updatesrc_test_bazel_.bazelversion'
runner: ubuntu-22.04
enable_bzlmod: false
- test: '@@//tests/updatesrc_tests:updatesrc_test_bazel_.bazelversion'
runner: ubuntu-22.04
enable_bzlmod: true
- test: '@@//tests/updatesrc_tests:updatesrc_test_bazel_.bazelversion'
runner: macos-13
enable_bzlmod: false
- test: '@@//tests/updatesrc_tests:updatesrc_test_bazel_.bazelversion'
runner: macos-13
enable_bzlmod: true
- test: '@@//tests/updatesrc_tests:updatesrc_test_bazel_6_4_0'
runner: ubuntu-22.04
enable_bzlmod: false
- test: '@@//tests/updatesrc_tests:updatesrc_test_bazel_6_4_0'
runner: ubuntu-22.04
enable_bzlmod: true
- test: '@@//tests/updatesrc_tests:updatesrc_test_bazel_6_4_0'
runner: macos-13
enable_bzlmod: false
- test: '@@//tests/updatesrc_tests:updatesrc_test_bazel_6_4_0'
runner: macos-13
enable_bzlmod: true
runs-on: ${{ matrix.runner }}
env:
CC: clang
steps:
- uses: actions/checkout@6d193bf28034eafb982f37bd894289fe649468fc
- uses: cgrindel/gha_set_up_bazel@v1
with:
bazel_disk_cache_dir: ""
bazel_repo_cache_dir: ""
repo_name: bazel-starlib
- uses: ./.github/actions/configure_bzlmod
with:
enabled: ${{ matrix.enable_bzlmod }}
- uses: ./.github/actions/configure_remote_cache_auth
with:
buildbuddy_api_key: ${{ secrets.BUILDBUDDY_API_KEY }}
- uses: ./.github/actions/execute_test
with:
bzlmod_enabled: ${{ matrix.bzlmod_enabled }}
github_token: ${{ secrets.GITHUB_TOKEN }}
test_target: ${{ matrix.test }}
tidy_and_test_matrix:
strategy:
fail-fast: false
matrix:
runner:
- macos-13
- ubuntu-22.04
runs-on: ${{ matrix.runner }}
steps:
- uses: actions/checkout@6d193bf28034eafb982f37bd894289fe649468fc
- uses: cgrindel/gha_set_up_bazel@v1
with:
bazel_disk_cache_dir: ""
bazel_repo_cache_dir: ""
repo_name: bazel-starlib
- uses: ./.github/actions/configure_remote_cache_auth
with:
buildbuddy_api_key: ${{ secrets.BUILDBUDDY_API_KEY }}
- uses: ./.github/actions/tidy_and_test
with:
github_token: ${{ secrets.GITHUB_TOKEN }}