-
Notifications
You must be signed in to change notification settings - Fork 408
44 lines (33 loc) · 990 Bytes
/
autofix.yml
File metadata and controls
44 lines (33 loc) · 990 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
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-24.04
steps:
- uses: actions/checkout@v6
with:
lfs: true
- name: Use Node.js
uses: actions/setup-node@v6
with:
node-version: 24
cache: 'yarn'
- uses: actions/setup-go@v6
with:
go-version: "oldstable"
- name: Install shfmt
run: go install mvdan.cc/sh/v3/cmd/shfmt@v3.11.0
- 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
- name: Format codebase (.ts)
run: yarn format
# See https://autofix.ci/
- uses: autofix-ci/action@v1