From 3a18921336bb1eb0eb7b025839c5482a3a39d00c Mon Sep 17 00:00:00 2001 From: Oleksandr Savchuk Date: Thu, 14 Mar 2024 02:05:21 +0200 Subject: [PATCH] add test on latest go --- .github/workflows/ci.yml | 39 +++++++++++++++++++++------------------ 1 file changed, 21 insertions(+), 18 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 0d7838c..ce895bb 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -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 @@ -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: | @@ -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 @@ -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