Skip to content

Commit f7370a0

Browse files
authored
Merge pull request #1654 from cosmos/use-autofix
Use autofix
2 parents cdb03d5 + 130e667 commit f7370a0

File tree

3 files changed

+43
-8
lines changed

3 files changed

+43
-8
lines changed

.circleci/config.yml

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -643,12 +643,6 @@ jobs:
643643
- run:
644644
name: Lint
645645
command: yarn lint
646-
- run:
647-
name: Format text
648-
command: yarn format-text
649-
- run:
650-
name: Format shell scripts
651-
command: yarn format-shell
652646
faucet-docker:
653647
docker:
654648
- image: cimg/go:1.17.8

.github/workflows/autofix.yml

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
name: autofix.ci # needed to securely identify the workflow
2+
3+
on:
4+
pull_request:
5+
6+
permissions:
7+
contents: read
8+
9+
jobs:
10+
# format-text and format-shell in one job to ensure we don't require multiple fix commits and CI re-runs
11+
format:
12+
runs-on: ubuntu-latest
13+
steps:
14+
- uses: actions/checkout@v4
15+
with:
16+
lfs: true
17+
18+
- name: Use Node.js
19+
uses: actions/setup-node@v4
20+
with:
21+
node-version: '20.x'
22+
cache: 'yarn'
23+
24+
- uses: actions/setup-go@v5
25+
with:
26+
go-version: "oldstable"
27+
28+
- name: Install shfmt
29+
run: go install mvdan.cc/sh/v3/cmd/[email protected]
30+
31+
- name: Install dependencies
32+
run: yarn install --immutable --immutable-cache --check-cache
33+
34+
- name: Format text
35+
run: yarn format-text
36+
37+
- name: Format shell
38+
run: yarn format-shell
39+
40+
# See https://autofix.ci/
41+
- uses: autofix-ci/action@v1

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -199,8 +199,8 @@ and suggestions.
199199
- [GitHub issues](https://github.com/cosmos/cosmjs/issues) for bugs and feature
200200
requests
201201
- The `#dev-chat` channel, or `#dev-support-ai` on the
202-
[interchain Discord server](https://discord.gg/interchain) for
203-
questions and open discussions
202+
[interchain Discord server](https://discord.gg/interchain) for questions and
203+
open discussions
204204
- [#CosmJS on Twitter](https://twitter.com/search?q=%23CosmJS) to spread the
205205
word
206206

0 commit comments

Comments
 (0)