Skip to content

Commit

Permalink
add test on latest go
Browse files Browse the repository at this point in the history
  • Loading branch information
mr-linch committed Mar 14, 2024
1 parent ab4b6bb commit 3a18921
Showing 1 changed file with 21 additions and 18 deletions.
39 changes: 21 additions & 18 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,17 +3,17 @@ name: CI
on:
pull_request:
push:
branches: [ main ]
branches: [main]

jobs:
lint:
name: Lint
name: Lint & Tidy
runs-on: ubuntu-latest
steps:
- name: Install Go
uses: actions/setup-go@v5
with:
go-version: "1.18"
go-version: latest

- name: Checkout
uses: actions/checkout@v4
Expand All @@ -23,20 +23,8 @@ jobs:
with:
version: v1.46

tidy:
name: Go Tidy
runs-on: ubuntu-latest
steps:
- name: Install Go
uses: actions/setup-go@v5
with:
go-version: "1.18"

- name: Checkout
uses: actions/checkout@v4

- name: Tidy
run: make go-tidy
run: go mod tidy

- name: Check Git Status
run: |
Expand All @@ -49,8 +37,8 @@ jobs:
echo "No changes after tidy, continuing"
fi
test:
name: Test
test-1-18:
name: Test go1.18
runs-on: ubuntu-latest
steps:
- name: Install Go
Expand All @@ -68,3 +56,18 @@ jobs:
uses: codecov/codecov-action@v4
with:
token: ${{ secrets.CODECOV_TOKEN }} # not required for public repos

test-latest:
name: Test latest
runs-on: ubuntu-latest
steps:
- name: Install Go
uses: actions/setup-go@v5
with:
go-version: "latest"

- name: Checkout
uses: actions/checkout@v4

- name: Test
run: go test -timeout 30

0 comments on commit 3a18921

Please sign in to comment.