Skip to content

Commit

Permalink
Merge branch 'master' into chore/upgrade-to-zap/exp-3.0
Browse files Browse the repository at this point in the history
  • Loading branch information
thehowl authored Dec 20, 2024
2 parents d641054 + 1a96739 commit f51ec28
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 12 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/codeql.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,10 @@ on:
branches: [ "master", "chain/*" ]
pull_request:
branches: [ "master", "chain/*" ]
paths:
- '**/*.go'
- 'go.mod'
- 'go.sum'
schedule:
- cron: '22 17 * * 3'

Expand Down
14 changes: 4 additions & 10 deletions .github/workflows/examples.yml
Original file line number Diff line number Diff line change
Expand Up @@ -71,16 +71,10 @@ jobs:
# TODO: consider running lint on every other directories, maybe in "warning" mode?
# TODO: track coverage
fmt:
name: Run gno fmt
runs-on: ubuntu-latest
steps:
- name: gno fmt
uses: ./.github/workflows/gnofmt_template.yml
with:
path: "examples/..."
- name: Check for unformatted gno files
run: |
git diff --exit-code || (echo "Some gno files are not formatted, please run 'make fmt'." && exit 1)
name: Run gno fmt on examples
uses: ./.github/workflows/gnofmt_template.yml
with:
path: "examples/..."

mod-tidy:
strategy:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/fossa.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ on:
- '**/*.go'
- 'go.mod'
- 'go.sum'
pull_request:
pull_request_target:
paths:
- '**/*.go'
- 'go.mod'
Expand Down
8 changes: 7 additions & 1 deletion .github/workflows/gnofmt_template.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,15 @@ jobs:
uses: actions/setup-go@v5
with:
go-version: ${{ inputs.go-version }}

- name: Checkout code
uses: actions/checkout@v4
- name: fmt

- name: Format code with gno fmt
env:
GNOFMT_PATH: ${{ inputs.path }}
run: go run ./gnovm/cmd/gno fmt -v -diff $GNOFMT_PATH

- name: Check for unformatted code
run: |
git diff --exit-code || (echo "Some gno files are not formatted, please run 'make fmt'." && exit 1)

0 comments on commit f51ec28

Please sign in to comment.