Skip to content

Use autofix #1654

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Jun 11, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 0 additions & 6 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -643,12 +643,6 @@ jobs:
- run:
name: Lint
command: yarn lint
- run:
name: Format text
command: yarn format-text
- run:
name: Format shell scripts
command: yarn format-shell
faucet-docker:
docker:
- image: cimg/go:1.17.8
Expand Down
41 changes: 41 additions & 0 deletions .github/workflows/autofix.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
name: autofix.ci # needed to securely identify the workflow

on:
pull_request:

permissions:
contents: read

jobs:
# format-text and format-shell in one job to ensure we don't require multiple fix commits and CI re-runs
format:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
lfs: true

- name: Use Node.js
uses: actions/setup-node@v4
with:
node-version: '20.x'
cache: 'yarn'

- uses: actions/setup-go@v5
with:
go-version: "oldstable"

- name: Install shfmt
run: go install mvdan.cc/sh/v3/cmd/[email protected]

- name: Install dependencies
run: yarn install --immutable --immutable-cache --check-cache

- name: Format text
run: yarn format-text

- name: Format shell
run: yarn format-shell

# See https://autofix.ci/
- uses: autofix-ci/action@v1
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -199,8 +199,8 @@ and suggestions.
- [GitHub issues](https://github.com/cosmos/cosmjs/issues) for bugs and feature
requests
- The `#dev-chat` channel, or `#dev-support-ai` on the
[interchain Discord server](https://discord.gg/interchain) for
questions and open discussions
[interchain Discord server](https://discord.gg/interchain) for questions and
open discussions
- [#CosmJS on Twitter](https://twitter.com/search?q=%23CosmJS) to spread the
word

Expand Down
Loading