Skip to content

Commit

Permalink
Update GitHub actions (#118)
Browse files Browse the repository at this point in the history
  • Loading branch information
fmeum authored Sep 15, 2024
1 parent 3e907d4 commit 928bccd
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 26 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/check-formatting.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,12 @@ jobs:
name: Check formatting

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4

- name: Setup Go environment
uses: actions/setup-go@v2
uses: actions/setup-go@v4
with:
go-version: '^1.22'
go-version: '^1.23'

- name: Install formatters
run: |
Expand Down
14 changes: 2 additions & 12 deletions .github/workflows/run-tests-externally.yml
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ jobs:
BAZELISK_GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4

- name: Set up JDK
uses: actions/setup-java@v4
Expand All @@ -63,7 +63,7 @@ jobs:
java-version: ${{ matrix.jdk }}

- name: Mount Bazel disk cache
uses: actions/cache@v2
uses: actions/cache@v4
with:
path: ${{ matrix.cache }}
key: bazel-disk-cache-${{ matrix.bazel }}-${{ matrix.os }}-${{ matrix.jdk }}
Expand All @@ -88,13 +88,3 @@ jobs:
sudo apt install clang-14 llvm-14
bazelisk coverage --config=ci --disk_cache=${{ matrix.cache }} --profile=${{ github.workspace }}/profile.gz ${{ matrix.bazel_extra_args }} //...
./verify_coverage.sh
- name: Upload test logs
if: always()
uses: actions/upload-artifact@v2
with:
name: testlogs-${{ matrix.bazel}}-${{ matrix.os }}-${{ matrix.jdk }}
# https://github.com/actions/upload-artifact/issues/92#issuecomment-711107236
path: |
${{ github.workspace }}/tests/bazel-testlogs*/**/test.log
${{ github.workspace }}/profile.gz
13 changes: 2 additions & 11 deletions .github/workflows/run-tests-internally.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ jobs:
name: Build and test internally (ubuntu-latest, Bazel last_green module, JDK 21)

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4

- name: Set up JDK
uses: actions/setup-java@v4
Expand All @@ -28,7 +28,7 @@ jobs:
java-version: 21

- name: Mount Bazel disk cache
uses: actions/cache@v2
uses: actions/cache@v4
with:
path: "/home/runner/.cache/bazel-disk"
key: bazel-disk-cache-internal
Expand All @@ -42,12 +42,3 @@ jobs:
env:
USE_BAZEL_VERSION: "last_green"
run: bazelisk test --disk_cache="/home/runner/.cache/bazel-disk" //...

- name: Upload test logs
if: always()
uses: actions/upload-artifact@v2
with:
name: testlogs-internal
# https://github.com/actions/upload-artifact/issues/92#issuecomment-711107236
path: |
${{ github.workspace }}/bazel-testlogs*/**/test.log

0 comments on commit 928bccd

Please sign in to comment.