Skip to content

Commit

Permalink
Merge pull request #232 from dell/unit-test-gh-action
Browse files Browse the repository at this point in the history
Update Github Actions
  • Loading branch information
chimanjain authored Nov 15, 2023
2 parents 3eb59aa + 262872e commit 3a90ab7
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 3 deletions.
21 changes: 19 additions & 2 deletions .github/workflows/actions.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
name: Workflow
on:
push:
branches: [ main ]
branches: [main]
pull_request:
branches: [ main ]
branches: [main]
jobs:
code-check:
name: Check Go formatting, linting, vetting
Expand Down Expand Up @@ -36,3 +36,20 @@ jobs:
with:
directories: .
options: -ri
unit_test:
name: Run Go unit tests
runs-on: ubuntu-latest
steps:
- name: Download Go
uses: actions/setup-go@v2
with:
go-version: "1.21"
- name: Checkout the code
uses: actions/checkout@v4
- name: Vendor packages
run: |
go mod vendor
- name: Test
env:
GOPROXY: "https://proxy.golang.org"
run: cd service; go clean -cache; go test -v .
2 changes: 1 addition & 1 deletion .github/workflows/linters.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,5 +26,5 @@ jobs:
- name: golangci-lint
uses: golangci/golangci-lint-action@v3
with:
version: v1.54
version: v1.55
skip-cache: true

0 comments on commit 3a90ab7

Please sign in to comment.