Skip to content

Commit 661c753

Browse files
committed
switching pipeline to stable/oldstable
1 parent 4a86b7c commit 661c753

File tree

1 file changed

+8
-17
lines changed

1 file changed

+8
-17
lines changed

.github/workflows/tests.yml

Lines changed: 8 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -2,33 +2,24 @@ name: Tests
22

33
on:
44
push:
5-
branches: [ master ]
5+
branches: [master]
66
pull_request:
7-
branches: [ master ]
7+
branches: [master]
88

99
jobs:
1010
tests:
1111
name: Test code
1212
runs-on: ubuntu-latest
1313
strategy:
1414
matrix:
15-
go: [ 1.22.x, 1.23.x, 1.24.x, tip ]
15+
go: [oldstable, stable]
1616

1717
steps:
1818
- name: Set up Go stable
19-
if: matrix.go != 'tip'
20-
uses: actions/setup-go@v5
19+
uses: actions/setup-go@v6
2120
with:
2221
go-version: ${{ matrix.go }}
23-
- name: Set up Go tip
24-
if: matrix.go == 'tip'
25-
run: |
26-
curl -o go.tar.gz -L \
27-
https://github.com/AlekSi/golang-tip/releases/download/tip/master.linux-amd64.tar.gz
28-
sudo tar -C /usr/local -xzf go.tar.gz
29-
sudo ln -s /usr/local/go/bin/* /usr/local/bin/
30-
/usr/local/bin/go version
31-
echo "PATH=$HOME/go/bin:$HOME/sdk/gotip/bin/:$PATH" >> $GITHUB_ENV
22+
check-latest: true
3223

3324
- name: Check out code into the Go module directory
3425
uses: actions/checkout@v5
@@ -55,7 +46,7 @@ jobs:
5546
CGO_ENABLED: 1
5647

5748
- name: Govulncheck
58-
if: ${{ matrix.go == '1.24.x' }} # only do govulncheck when built with latest stable go
49+
if: ${{ matrix.go == 'stable' }} # only do govulncheck when built with latest stable go
5950
id: govulncheck
6051
uses: golang/govulncheck-action@v1
6152
with:
@@ -74,7 +65,7 @@ jobs:
7465
make sum-files
7566
7667
- name: Upload Artifact
77-
if: ${{ matrix.go == '1.24.x' }} # only upload artifact when built with latest stable go
68+
if: ${{ matrix.go == 'stable' }} # only upload artifact when built with latest stable go
7869
id: artifact
7970
uses: actions/upload-artifact@v6
8071
with:
@@ -87,7 +78,7 @@ jobs:
8778
md5sum
8879
8980
- name: Push packages to the autobuilds repo
90-
if: ${{ github.event_name == 'push' && matrix.go == '1.24.x' }} # only when built from master with latest stable go
81+
if: ${{ github.event_name == 'push' && matrix.go == 'stable' }} # only when built from master with latest stable go
9182
run: make DEVEL=1 packagecloud-autobuilds
9283
env:
9384
PACKAGECLOUD_TOKEN: ${{ secrets.PACKAGECLOUD_TOKEN }}

0 commit comments

Comments
 (0)