From 659c8a650c740e28eed9e7809b319b8da03f1f56 Mon Sep 17 00:00:00 2001 From: Aneesh Puttur Date: Thu, 6 Feb 2025 15:29:01 -0500 Subject: [PATCH] Update test.yml --- .github/workflows/test.yml | 37 ++++++++++++++++--------------------- 1 file changed, 16 insertions(+), 21 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 9f19e6bd..034d7a60 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -1,32 +1,27 @@ -on: [push, pull_request] name: Unit Test + +on: [push, pull_request] + jobs: test: strategy: matrix: - go-version: [1.23.x] + go-version: [1.23.x] # Use valid versions os: [ubuntu-latest] + runs-on: ${{ matrix.os }} - steps: - - name: Install Go - uses: actions/setup-go@v5 - with: - go-version: ${{ matrix.go-version }} - - name: Checkout code - uses: actions/checkout@v4 + steps: + - name: Checkout code + uses: actions/checkout@v4 - - name: Run Revive Action by pulling pre-built image - uses: docker://morphy/revive-action:v2 - with: - exclude: "./vendor/..." + - name: Install Go + uses: actions/setup-go@v5 + with: + go-version: ${{ matrix.go-version }} - - name: Run go fmt - run: go fmt ./... - #run: diff -u <(echo -n) <(gofmt -d -s .) - - - name: Run go vet - run: go vet ./... - - name: Run Test - run: make test + - name: Install Dependencies + run: go mod tidy && go mod download + - name: Run Tests + run: make test