👷 Speed up bazel-test in CI

This commit is contained in:
OpenWaygate committed 2026-08-02 00:01:02 +08:00
1 parent de676675e8
commit 7c6d9adab8
1 file changed
+5 -7
+5 -7
View File
@@ -69,24 +69,22 @@ jobs:
bazelisk-cache: true
disk-cache: ${{ github.workflow }}
repository-cache: true
- uses: actions/setup-go@v6
with:
go-version-file: ./go.mod
external-cache: |
manifest:
go_sdk: go.mod
cache-save: ${{ github.event_name != 'pull_request' }}
- name: Install dependencies
shell: bash
run: |
bazel run @rules_go//go -- mod tidy -v
bazel mod tidy
export PATH="$HOME/go/bin:$PATH"
bazel run @rules_go//go -- install github.com/tc-hib/go-winres@latest
bazel run @rules_go//go -- generate ./...
- name: Bazel test
shell: bash
run: |
bazel test //... --test_output=errors
- name: Build binaries
shell: bash
run: |
bazel build //...
- name: Command tests
shell: bash
run: |