Skip to content

Commit

Permalink
ci: pre-commit in github actions
Browse files Browse the repository at this point in the history
  • Loading branch information
thomariobros committed Sep 10, 2024
1 parent 669876a commit e9e2dce
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 8 deletions.
5 changes: 1 addition & 4 deletions .github/workflows/go.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,13 +15,10 @@ jobs:
- uses: actions/checkout@v4

- name: Set up Go
uses: actions/setup-go@v2
uses: actions/setup-go@v4
with:
go-version: 1.17

- name: Format
run: make fmt-check

- name: Build
run: make build-cli build-server

Expand Down
3 changes: 2 additions & 1 deletion .github/workflows/pre-commit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,8 @@ jobs:
steps:
- uses: actions/checkout@v4

- uses: actions/setup-python@v3
- uses: actions/setup-python@v4
- uses: actions/setup-go@v4

- name: Install pre-commit
run: sudo apt install -y pre-commit
Expand Down
3 changes: 0 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,6 @@ mod-download:
fmt:
@gofmt -s -l -w .

fmt-check:
@./scripts/fmt-check.sh

bindata:
@go install github.com/go-bindata/go-bindata/...
@~/go/bin/go-bindata -o ./pkg/run/bindata.go -pkg run config/i18n/...
Expand Down

0 comments on commit e9e2dce

Please sign in to comment.