From 8ef1fb9dd84dc3d89fe31995fdee0b118cf8eb52 Mon Sep 17 00:00:00 2001 From: kento2 Date: Tue, 25 Aug 2026 15:39:02 +0200 Subject: [PATCH] ci --- .forgejo/workflows/publish-artifact.yml | 1 + .forgejo/workflows/run-tests.yml | 26 +++++++++++++++++++++++++ 2 files changed, 27 insertions(+) create mode 100644 .forgejo/workflows/run-tests.yml diff --git a/.forgejo/workflows/publish-artifact.yml b/.forgejo/workflows/publish-artifact.yml index 96bade7..14e2651 100644 --- a/.forgejo/workflows/publish-artifact.yml +++ b/.forgejo/workflows/publish-artifact.yml @@ -28,4 +28,5 @@ jobs: run "$target" \ --remote_cache="https://${CACHE_USERNAME}:${CACHE_PASSWORD}@cache.lab0x13.site:443" \ --remote_upload_local_results \ + --noremote_cache_async done \ No newline at end of file diff --git a/.forgejo/workflows/run-tests.yml b/.forgejo/workflows/run-tests.yml new file mode 100644 index 0000000..5e3e643 --- /dev/null +++ b/.forgejo/workflows/run-tests.yml @@ -0,0 +1,26 @@ +on: + push: + +jobs: + build: + runs-on: docker + container: + image: "git.lab0x13.site/scrow/bazel-java:0.12" + steps: + - uses: actions/checkout@v7 + - uses: actions/cache@v6 + with: + path: /var/cache/bazel + key: bazel-${{ env.FORGEJO_REPOSITORY }} + - id: run-tests + env: + CACHE_USERNAME: ${{ secrets.CACHE_USERNAME }} + CACHE_PASSWORD: ${{ secrets.CACHE_PASSWORD }} + run: | + bazel \ + --output_user_root=/var/cache/bazel \ + test + --remote_cache="https://${CACHE_USERNAME}:${CACHE_PASSWORD}@cache.lab0x13.site:443" \ + --noremote_upload_local_results \ + --noremote_cache_async \ + //common/tests:site/lab0x13/scrow/commands/CommandHandlerTest --test_output=all --test_verbose_timeout_warnings