Skip to content

Commit

Permalink
Update test.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
aneeshkp authored Feb 6, 2025
1 parent df3c18c commit 659c8a6
Showing 1 changed file with 16 additions and 21 deletions.
37 changes: 16 additions & 21 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 659c8a6

Please sign in to comment.