Skip to content

Commit 7fc7682

Browse files
committed
fix: lint in parallel to build
Signed-off-by: Michael Nahkies <michael@nahkies.co.nz>
1 parent c2869a8 commit 7fc7682

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

.github/workflows/android.yml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,5 +36,22 @@ jobs:
3636
- name: Run tests
3737
run: make test
3838

39+
lint:
40+
runs-on: ubuntu-latest
41+
42+
if: "!contains(github.event.head_commit.message, '[ci skip]')"
43+
44+
steps:
45+
- name: Check out code
46+
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
47+
- uses: actions/setup-go@0aaccfd150d50ccaeb58ebd88d36e91967a5f35b # v5.4.0
48+
with:
49+
go-version-file: "go.mod"
50+
- name: Switch to Java 17 # Note: 17 is pre-installed on ubuntu-latest
51+
uses: actions/setup-java@3a4f6e1af504cf6a31855fa899c6aa5355ba6c12 # v4.7.0
52+
with:
53+
distribution: "temurin"
54+
java-version: "17"
55+
3956
- name: Run lint
4057
run: make lint-ci

0 commit comments

Comments
 (0)