Skip to content

Use autofix

Use autofix #6

Workflow file for this run

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