diff --git a/.github/workflows/unit.yml b/.github/workflows/lint.yaml similarity index 59% rename from .github/workflows/unit.yml rename to .github/workflows/lint.yaml index fb7fd8d..68c9755 100644 --- a/.github/workflows/unit.yml +++ b/.github/workflows/lint.yaml @@ -5,23 +5,16 @@ jobs: runs-on: ubuntu-latest strategy: fail-fast: false - matrix: - go-version: - - "1.22" steps: - name: Checkout source uses: actions/checkout@v5 - - name: Setup Go ${{ matrix.go-version }} + - name: Setup Go uses: actions/setup-go@v5 with: - go-version: ${{ matrix.go-version }} + go-version: "1" - name: Run linters run: | make lint - - - name: Run unit tests - run: | - make unit diff --git a/.github/workflows/unit.yaml b/.github/workflows/unit.yaml new file mode 100644 index 0000000..90f061a --- /dev/null +++ b/.github/workflows/unit.yaml @@ -0,0 +1,17 @@ +name: Unit Testing +on: [push, pull_request] +jobs: + test: + runs-on: ubuntu-latest + steps: + - name: Checkout source + uses: actions/checkout@v5 + + - name: Setup Go + uses: actions/setup-go@v5 + with: + go-version-file: 'go.mod' + + - name: Run unit tests + run: | + make unit diff --git a/Makefile b/Makefile index de944b9..95d435d 100644 --- a/Makefile +++ b/Makefile @@ -1,7 +1,7 @@ undefine GOFLAGS -GOLANGCI_LINT_VERSION?=v2.1.6 -GOTESTSUM_VERSION?=v1.12.2 +GOLANGCI_LINT_VERSION?=v2.5.0 +GOTESTSUM_VERSION?=v1.13.0 GO_TEST?=go run gotest.tools/gotestsum@$(GOTESTSUM_VERSION) --format testname -- TIMEOUT := "60m"