Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
34 changes: 17 additions & 17 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ on:
pull_request:
push:
branches:
- main
- main

concurrency:
group: ci-${{ github.head_ref }}-${{ github.event_name }}
Expand All @@ -30,7 +30,7 @@ jobs:
USE_BAZEL_VERSION: ${{ matrix.bazel-version }}
BAZELRC: ${{ matrix.custom-bazelrc }}
steps:
- uses: actions/checkout@v4
- uses: actions/checkout@v6
- name: Build
run: |
bazel build //...
Expand All @@ -52,7 +52,7 @@ jobs:
run:
working-directory: "example/bzlmod"
steps:
- uses: actions/checkout@v4
- uses: actions/checkout@v6
- name: Run Gazelle
run: "bazel run //:gazelle"
- name: Build
Expand All @@ -64,25 +64,25 @@ jobs:
runs-on: ubuntu-24.04
timeout-minutes: 15
steps:
- uses: actions/checkout@v4
- name: Install Conan
run: |
python3 -m pip install --upgrade pip
pip install conan
- name: Execute manual integration tests
run: bazel test --test_output=errors //index:integration_tests
- uses: actions/checkout@v6
- name: Install Conan
run: |
python3 -m pip install --upgrade pip
pip install conan
- name: Execute manual integration tests
run: bazel test --test_output=errors //index:integration_tests

test-e2e:
runs-on: ubuntu-24.04
timeout-minutes: 15
steps:
- uses: actions/checkout@v4
- name: Execute end to end tests
run: bash .github/workflows/test_e2e.sh
- uses: actions/checkout@v6
- name: Execute end to end tests
run: bash .github/workflows/test_e2e.sh

license-headers:
runs-on: ubuntu-24.04
timeout-minutes: 5
steps:
- uses: actions/checkout@v4
- run: ./scripts/license_check.sh
- uses: actions/checkout@v6
- run: ./scripts/license_check.sh
19 changes: 9 additions & 10 deletions .github/workflows/generate_bzldep_index.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,14 +13,14 @@ jobs:
build-plan:
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@v4
- uses: coursier/cache-action@v6
- uses: coursier/setup-action@v1
- uses: actions/checkout@v6
- uses: coursier/cache-action@v8
- uses: coursier/setup-action@v3
with:
apps: scala

# Reuse already resolved info if available
- uses: actions/cache@v4
- uses: actions/cache@v5
with:
path: .cache/
key: gen-mappings-indexer-cache
Expand All @@ -31,7 +31,7 @@ jobs:
--recompute-unresolved \
--cache-dir=$PWD/.cache \
-v

- name: Create PR
env:
GH_TOKEN: ${{ github.token }}
Expand All @@ -42,18 +42,17 @@ jobs:
git config --global user.name "github-actions[bot]"
git checkout -b $branchName
git add ./language/cc/bzldep-index.json

if git diff --cached --quiet; then
echo "No changes to the index file, skipping PR creation"
exit 0
fi

git commit -m "Automated update of headers index based on bazel-central-registry"
git push origin $branchName

gh pr create \
--base=main \
--head=$branchName \
--title='[Bot] Update bazel-central-registry headers index' \
--fill

2 changes: 1 addition & 1 deletion .github/workflows/publish-to-bcr.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ on:

jobs:
publish-to-bcr:
uses: "bazel-contrib/publish-to-bcr/.github/workflows/publish.yaml@v0.2.3"
uses: "bazel-contrib/publish-to-bcr/.github/workflows/publish.yaml@v1.1.0"
with:
tag_name: "${{ inputs.tag_name }}"
registry_fork: "EngFlow/bazel-central-registry"
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ jobs:
prerelease: false
release_files: gazelle_cc-*.tar.gz
tag_name: ${{ inputs.tag_name || github.ref_name }}

publish-to-bcr:
needs: [release]
uses: ./.github/workflows/publish-to-bcr.yaml
Expand Down