Skip to content

Commit a5cccc4

Browse files
Update github actions to latest versions (#158)
* Update github actions to latest versions * Update bazel configs * more updates * disable bazelversion file * dont let coverage fail the build * remove coverage for now
1 parent 00755c1 commit a5cccc4

File tree

5 files changed

+11
-21
lines changed

5 files changed

+11
-21
lines changed

.github/workflows/ci.yaml

Lines changed: 6 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -17,13 +17,13 @@ jobs:
1717
java-version: '8'
1818
id: java
1919
- name: Setup Go environment
20-
uses: actions/setup-go@v2
20+
uses: actions/setup-go@v3
2121
with:
2222
go-version: ^1.17
2323
id: go
2424
- name: Setup Bazelisk
2525
run: go install github.com/bazelbuild/bazelisk@latest && export PATH=$PATH:$(go env GOPATH)/bin
26-
- uses: actions/checkout@v2
26+
- uses: actions/checkout@v3
2727
- name: Run bazel-diff tests
2828
run: USE_BAZEL_VERSION=latest ~/go/bin/bazelisk test //cli/...
2929
- name: archive testlogs
@@ -44,13 +44,13 @@ jobs:
4444
distribution: 'temurin'
4545
java-version: '11'
4646
- name: Setup Go environment
47-
uses: actions/setup-go@v2
47+
uses: actions/setup-go@v3
4848
with:
4949
go-version: ^1.17
5050
id: go
5151
- name: Setup Bazelisk
5252
run: go install github.com/bazelbuild/bazelisk@latest && export PATH=$PATH:$(go env GOPATH)/bin
53-
- uses: actions/checkout@v2
53+
- uses: actions/checkout@v3
5454
- name: Run bazel-diff tests
5555
run: USE_BAZEL_VERSION=latest ~/go/bin/bazelisk coverage --combined_report=lcov //cli/...
5656
- name: archive testlogs
@@ -62,17 +62,6 @@ jobs:
6262
with:
6363
name: test-logs-jre11
6464
path: test-logs.zip
65-
- name: Generate code coverage
66-
run: |
67-
sudo apt-get install -y lcov
68-
genhtml $(~/go/bin/bazelisk info output_path)/_coverage/_coverage_report.dat -o coverage/html
69-
(cd coverage/html; zip -r -X ../../coverage-jre11.zip .)
70-
- name: Save code coverage
71-
uses: actions/upload-artifact@master
72-
if: always()
73-
with:
74-
name: coverage-jre11-jre11
75-
path: coverage-jre11.zip
7665
deploy:
7766
needs: [test-jre8, test-jre11]
7867
runs-on: ubuntu-latest
@@ -87,13 +76,13 @@ jobs:
8776
java-version: ${{ matrix.java }}
8877
id: java
8978
- name: Setup Go environment
90-
uses: actions/setup-go@v2
79+
uses: actions/setup-go@v3
9180
with:
9281
go-version: ^1.17
9382
id: go
9483
- name: Setup Bazelisk
9584
run: go install github.com/bazelbuild/bazelisk@latest && export PATH=$PATH:$(go env GOPATH)/bin
96-
- uses: actions/checkout@v2
85+
- uses: actions/checkout@v3
9786
- name: Build deployable JAR
9887
run: USE_BAZEL_VERSION=latest ~/go/bin/bazelisk build //cli:bazel-diff_deploy.jar
9988
- uses: actions/upload-artifact@v3

.github/workflows/integration_external_target.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ jobs:
2121
distribution: 'temurin'
2222
java-version: ${{ matrix.java }}
2323
id: java
24-
- uses: actions/checkout@v2
24+
- uses: actions/checkout@v3
2525
with:
2626
repository: tinder-maxwellelliott/bazel-diff-repro-1
2727
ref: wip_fix

.github/workflows/integration_no_impacted_targets.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ jobs:
2121
distribution: 'temurin'
2222
java-version: ${{ matrix.java }}
2323
id: java
24-
- uses: actions/checkout@v2
24+
- uses: actions/checkout@v3
2525
with:
2626
repository: maxwellE/examples
2727
ref: add_bazel_diff_impact

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,3 +26,4 @@ out
2626
user.bazelrc
2727
!bazel-diff-example.sh
2828
.DS_Store
29+
!.bazelversion

constants.bzl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,5 @@ Various constants used to build bazel-diff
44

55
DEFAULT_JVM_EXTERNAL_TAG = "4.2"
66
RULES_JVM_EXTERNAL_SHA = "cd1a77b7b02e8e008439ca76fd34f5b07aecb8c752961f9640dea15e9e5ba1ca"
7-
DEFAULT_KOTLIN_EXTERNAL_VERSION = "1.5.0"
8-
RULES_KOTLIN_EXTERNAL_SHA = "12d22a3d9cbcf00f2e2d8f0683ba87d3823cb8c7f6837568dd7e48846e023307"
7+
DEFAULT_KOTLIN_EXTERNAL_VERSION = "1.7.1"
8+
RULES_KOTLIN_EXTERNAL_SHA = "fd92a98bd8a8f0e1cdcb490b93f5acef1f1727ed992571232d33de42395ca9b3"

0 commit comments

Comments
 (0)