Use autofix #4
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: autofix.ci # needed to securely identify the workflow | |
on: | |
pull_request: | |
permissions: | |
contents: read | |
jobs: | |
format-text: | |
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' | |
- name: Install Dependencies | |
run: yarn install --immutable --immutable-cache --check-cache | |
- name: Format text | |
run: yarn format-text | |
# See https://autofix.ci/ | |
- uses: autofix-ci/action@v1 | |
format-shell: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-go@v5 | |
with: | |
go-version: "oldstable" | |
- name: Install gofumpt | |
run: go install mvdan.cc/sh/v3/cmd/[email protected] | |
- name: Format codebase | |
run: shfmt -w scripts packages # use same call as in package.json | |
# See https://autofix.ci/ | |
- uses: autofix-ci/action@v1 |