aboutsummaryrefslogtreecommitdiff
path: root/.github/workflows/gofmt.yml
diff options
context:
space:
mode:
authorHimbeerserverDE <52707839+HimbeerserverDE@users.noreply.github.com>2022-05-15 14:29:05 +0200
committerGitHub <noreply@github.com>2022-05-15 14:29:05 +0200
commit2cc89db88ecdb2988fc504d57e746012e2bd1218 (patch)
tree45cc78fadce9b2823f4b1f67e1273ed8eb49a1d9 /.github/workflows/gofmt.yml
parent3d17a0af4dadb43ef3e6cb84d7876cf275ed857a (diff)
Create gofmt.yml
Diffstat (limited to '.github/workflows/gofmt.yml')
-rw-r--r--.github/workflows/gofmt.yml16
1 files changed, 16 insertions, 0 deletions
diff --git a/.github/workflows/gofmt.yml b/.github/workflows/gofmt.yml
new file mode 100644
index 0000000..8fd1cae
--- /dev/null
+++ b/.github/workflows/gofmt.yml
@@ -0,0 +1,16 @@
+name: gofmt
+
+on:
+ push:
+ branches: [ main ]
+ pull_request:
+ branches: [ main ]
+
+jobs:
+ build:
+ runs-on: ubuntu-latest
+ steps:
+ - name: Check code formatting using gofmt
+ uses: Jerome1337/gofmt-action@v1.0.4
+ with:
+ gofmt-flags: '-l -d'