Skip to content

Commit 5859a90

Browse files
committed
fix(workflows): try to get worklows running
1 parent 9ff7fdf commit 5859a90

File tree

3 files changed

+91
-37
lines changed

3 files changed

+91
-37
lines changed

.github/workflows/build.yml

Lines changed: 34 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -16,14 +16,23 @@ jobs:
1616
runs-on: ubuntu-latest
1717
steps:
1818
- name: checkout the repo
19-
uses: actions/checkout@v2
19+
uses: actions/checkout@v4
2020
with:
2121
fetch-depth: 0
2222

23+
- uses: awalsh128/cache-apt-pkgs-action@latest
24+
with:
25+
packages: docker-compose
26+
version: 1.0
27+
2328
- name: Set up JDK
24-
uses: actions/setup-java@v1
29+
uses: actions/setup-java@v4
2530
with:
26-
java-version: 11
31+
distribution: temurin
32+
java-version: 17
33+
34+
- name: Setup sbt launcher
35+
uses: sbt/setup-sbt@v1
2736

2837
- name: Launch pulsar docker
2938
run: docker-compose up -d
@@ -58,10 +67,19 @@ jobs:
5867
with:
5968
fetch-depth: 0
6069

70+
- uses: awalsh128/cache-apt-pkgs-action@latest
71+
with:
72+
packages: docker-compose
73+
version: 1.0
74+
6175
- name: Set up JDK
62-
uses: actions/setup-java@v1
76+
uses: actions/setup-java@v4
6377
with:
64-
java-version: 11
78+
distribution: temurin
79+
java-version: 17
80+
81+
- name: Setup sbt launcher
82+
uses: sbt/setup-sbt@v1
6583

6684
- name: Launch pulsar docker
6785
run: docker-compose up -d
@@ -97,10 +115,19 @@ jobs:
97115
with:
98116
fetch-depth: 0
99117

118+
- uses: awalsh128/cache-apt-pkgs-action@latest
119+
with:
120+
packages: docker-compose
121+
version: 1.0
122+
100123
- name: Set up JDK
101-
uses: actions/setup-java@v1
124+
uses: actions/setup-java@v4
102125
with:
103-
java-version: 11
126+
distribution: temurin
127+
java-version: 17
128+
129+
- name: Setup sbt launcher
130+
uses: sbt/setup-sbt@v1
104131

105132
- name: Launch pulsar docker
106133
run: docker-compose up -d

.github/workflows/pr.yml

Lines changed: 21 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -16,16 +16,16 @@ jobs:
1616
with:
1717
fetch-depth: 0
1818

19-
- uses: awalsh128/cache-apt-pkgs-action@latest
20-
with:
21-
packages: docker-compose
22-
version: 1.0
23-
2419
- name: Set up JDK
2520
uses: actions/setup-java@v4
2621
with:
27-
distribution: zulu
28-
java-version: 11
22+
distribution: temurin
23+
java-version: 17
24+
25+
- uses: awalsh128/cache-apt-pkgs-action@latest
26+
with:
27+
packages: docker-compose sbt
28+
version: 1.0
2929

3030
- name: Launch pulsar docker
3131
run: docker-compose up -d
@@ -41,16 +41,16 @@ jobs:
4141
with:
4242
fetch-depth: 0
4343

44-
- uses: awalsh128/cache-apt-pkgs-action@latest
45-
with:
46-
packages: docker-compose
47-
version: 1.0
48-
4944
- name: Set up JDK
5045
uses: actions/setup-java@v4
5146
with:
52-
distribution: zulu
53-
java-version: 11
47+
distribution: temurin
48+
java-version: 17
49+
50+
- uses: awalsh128/cache-apt-pkgs-action@latest
51+
with:
52+
packages: docker-compose sbt
53+
version: 1.0
5454

5555
- name: Launch pulsar docker
5656
run: docker-compose up -d
@@ -66,16 +66,16 @@ jobs:
6666
with:
6767
fetch-depth: 0
6868

69-
- uses: awalsh128/cache-apt-pkgs-action@latest
70-
with:
71-
packages: docker-compose
72-
version: 1.0
73-
7469
- name: Set up JDK
7570
uses: actions/setup-java@v4
7671
with:
77-
distribution: zulu
78-
java-version: 11
72+
distribution: temurin
73+
java-version: 17
74+
75+
- uses: awalsh128/cache-apt-pkgs-action@latest
76+
with:
77+
packages: docker-compose sbt
78+
version: 1.0
7979

8080
- name: Launch pulsar docker
8181
run: docker-compose up -d

.github/workflows/release.yml

Lines changed: 36 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -20,17 +20,26 @@ jobs:
2020
with:
2121
fetch-depth: 0
2222

23+
- uses: awalsh128/cache-apt-pkgs-action@latest
24+
with:
25+
packages: docker-compose
26+
version: 1.0
27+
2328
- name: Set up JDK
24-
uses: actions/setup-java@v1
29+
uses: actions/setup-java@v4
2530
with:
26-
java-version: 11
31+
distribution: temurin
32+
java-version: 17
33+
34+
- name: Setup sbt launcher
35+
uses: sbt/setup-sbt@v1
2736

2837
- name: Launch pulsar docker
2938
run: docker-compose up -d
3039

3140
- name: Import GPG key
3241
id: import_gpg
33-
uses: crazy-max/ghaction-import-gpg@v3
42+
uses: crazy-max/ghaction-import-gpg@v6
3443
with:
3544
gpg-private-key: ${{ secrets.GPG_PRIVATE_KEY }}
3645
passphrase: ${{ secrets.PGP_PASSPHRASE }}
@@ -60,17 +69,26 @@ jobs:
6069
with:
6170
fetch-depth: 0
6271

72+
- uses: awalsh128/cache-apt-pkgs-action@latest
73+
with:
74+
packages: docker-compose
75+
version: 1.0
76+
6377
- name: Set up JDK
64-
uses: actions/setup-java@v1
78+
uses: actions/setup-java@v4
6579
with:
66-
java-version: 11
80+
distribution: temurin
81+
java-version: 17
82+
83+
- name: Setup sbt launcher
84+
uses: sbt/setup-sbt@v1
6785

6886
- name: Launch pulsar docker
6987
run: docker-compose up -d
7088

7189
- name: Import GPG key
7290
id: import_gpg
73-
uses: crazy-max/ghaction-import-gpg@v3
91+
uses: crazy-max/ghaction-import-gpg@v6
7492
with:
7593
gpg-private-key: ${{ secrets.GPG_PRIVATE_KEY }}
7694
passphrase: ${{ secrets.PGP_PASSPHRASE }}
@@ -99,17 +117,26 @@ jobs:
99117
with:
100118
fetch-depth: 0
101119

120+
- uses: awalsh128/cache-apt-pkgs-action@latest
121+
with:
122+
packages: docker-compose
123+
version: 1.0
124+
102125
- name: Set up JDK
103-
uses: actions/setup-java@v1
126+
uses: actions/setup-java@v4
104127
with:
105-
java-version: 11
128+
distribution: temurin
129+
java-version: 17
130+
131+
- name: Setup sbt launcher
132+
uses: sbt/setup-sbt@v1
106133

107134
- name: Launch pulsar docker
108135
run: docker-compose up -d
109136

110137
- name: Import GPG key
111138
id: import_gpg
112-
uses: crazy-max/ghaction-import-gpg@v3
139+
uses: crazy-max/ghaction-import-gpg@v6
113140
with:
114141
gpg-private-key: ${{ secrets.GPG_PRIVATE_KEY }}
115142
passphrase: ${{ secrets.PGP_PASSPHRASE }}

0 commit comments

Comments
 (0)