Skip to content

Commit

Permalink
Workflow for formatting check and test
Browse files Browse the repository at this point in the history
  • Loading branch information
mahesh-hegde committed Mar 9, 2024
1 parent d3ee231 commit 79096f2
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions .github/workflows/workflow.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
name: default-pipeline
on: [push]
jobs:
check-format:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version: '^1.21.2'
- name: Install gofumpt
run: go install mvdan.cc/gofumpt@latest
- name: Check formatting
run: gofumpt -w -l . && git diff --exit-code
unit-test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version: '^1.21.2'
- name: Run tests
run: go test

0 comments on commit 79096f2

Please sign in to comment.