Skip to content

Commit

Permalink
ci-test: Bump go version to 1.21 and 1.22 for testing
Browse files Browse the repository at this point in the history
Also use the latest GitHub Actions:

- Bump actions/checkout@v3 to actions/checkout@v4
- Bump actions/setup-go@v3 to actions/setup-go@v5
- Bump actions/upload-artifact@v3 to actions/upload-artifact@v4
  • Loading branch information
anthonyfok committed Mar 22, 2024
1 parent b226a46 commit 989837a
Showing 1 changed file with 10 additions and 8 deletions.
18 changes: 10 additions & 8 deletions .github/workflows/ci-test.yml
Original file line number Diff line number Diff line change
@@ -1,25 +1,27 @@
name: CI Test

on: [push, pull_request, workflow_dispatch]
on:
push:
pull_request:
workflow_dispatch:

jobs:
ci-test:
runs-on: ubuntu-22.04
if: "!contains(github.event.head_commit.message, '[ci skip]') && !contains(github.event.head_commit.message, '[skip ci]')"
strategy:
matrix:
go-version: ['1.16.x', '1.17.x', '1.18.x']
env:
GO111MODULE: on # Needed for github.com/google/go-github/v38
go-version: ['1.21', '1.22']

steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Checkout
uses: actions/checkout@v4

- name: Install Go ${{ matrix.go-version }}
uses: actions/setup-go@v3
uses: actions/setup-go@v5
with:
go-version: ${{ matrix.go-version }}
check-latest: true

- run: diff -u <(echo -n) <(gofmt -d -s .)

Expand All @@ -46,7 +48,7 @@ jobs:
~/go/bin/dh-make-golang -type p -pristine-tar -program_package_name gh github.com/cli/cli
- name: Upload dh-make-golang test run as artifact
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: dh-make-golang_test-run_go${{ matrix.go-version }}
path: _test-run

0 comments on commit 989837a

Please sign in to comment.