Skip to content

Commit 6448f79

Browse files
authored
Merge pull request #1 from fiffeek/u/fm/ci
chore(ci): set up CI tests
2 parents 44b0920 + 5fc6fb7 commit 6448f79

File tree

7 files changed

+162
-47
lines changed

7 files changed

+162
-47
lines changed

.github/workflows/test.yaml

Lines changed: 69 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,69 @@
1+
---
2+
name: Test
3+
4+
on:
5+
push:
6+
branches:
7+
- main
8+
pull_request:
9+
branches:
10+
- main
11+
12+
permissions:
13+
pull-requests: write
14+
contents: read
15+
16+
jobs:
17+
tests:
18+
runs-on: ubuntu-latest
19+
timeout-minutes: 5
20+
21+
steps:
22+
- name: Checkout
23+
uses: actions/checkout@v4
24+
with:
25+
fetch-depth: 0
26+
lfs: true
27+
28+
- name: Fetch and checkout LFS objects
29+
run: |
30+
git lfs fetch --all
31+
git lfs checkout
32+
33+
- uses: jdx/mise-action@v3
34+
with:
35+
install: true
36+
37+
- name: Install deps
38+
run: mise run install
39+
40+
- name: Run post-commit
41+
run: mise run post-commit
42+
43+
- name: Unit tests
44+
run: mise run test_unit
45+
46+
- name: End to end tests
47+
run: mise run test_e2e
48+
49+
- name: Create coverage artifact
50+
run: mise run coverage
51+
52+
- name: Generate code coverage report
53+
uses: irongut/[email protected]
54+
with:
55+
filename: coverage.xml
56+
badge: false
57+
fail_below_min: false
58+
format: markdown
59+
hide_branch_rate: false
60+
hide_complexity: true
61+
indicators: true
62+
output: both
63+
64+
- name: Add Coverage PR Comment
65+
uses: marocchino/sticky-pull-request-comment@v2
66+
if: github.event_name == 'pull_request'
67+
with:
68+
recreate: true
69+
path: code-coverage-results.md

.pre-commit-config.yaml

Lines changed: 19 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -17,12 +17,26 @@ repos:
1717
rev: 0.2.1
1818
hooks:
1919
- id: yamlfmt
20-
- repo: https://github.com/tekwizely/pre-commit-golang
21-
rev: v1.0.0-rc.2
22-
hooks:
23-
- id: go-fmt
24-
- id: golangci-lint-repo-mod
2520
- repo: https://github.com/crate-ci/typos
2621
rev: v1.35.6
2722
hooks:
2823
- id: typos
24+
- repo: https://github.com/ComPWA/taplo-pre-commit
25+
rev: v0.9.3
26+
hooks:
27+
- id: taplo-format
28+
- id: taplo-lint
29+
- repo: local
30+
hooks:
31+
- id: mise-lint
32+
name: mise lint
33+
entry: mise
34+
args: [run, lint]
35+
language: system
36+
pass_filenames: false
37+
- id: mise-fmt
38+
name: mise format
39+
entry: mise
40+
args: [run, fmt]
41+
language: system
42+
pass_filenames: false

go.mod

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,21 +27,25 @@ require (
2727
github.com/fatih/color v1.18.0 // indirect
2828
github.com/fsnotify/fsnotify v1.9.0 // indirect
2929
github.com/google/shlex v0.0.0-20191202100458-e7afc7fbc510 // indirect
30+
github.com/kr/pretty v0.3.1 // indirect
3031
github.com/lucasb-eyer/go-colorful v1.3.0 // indirect
31-
github.com/mattn/go-colorable v0.1.13 // indirect
32+
github.com/mattn/go-colorable v0.1.14 // indirect
3233
github.com/mattn/go-isatty v0.0.20 // indirect
3334
github.com/mattn/go-runewidth v0.0.19 // indirect
3435
github.com/muesli/cancelreader v0.2.2 // indirect
3536
github.com/pmezard/go-difflib v1.0.0 // indirect
3637
github.com/rivo/uniseg v0.4.7 // indirect
38+
github.com/rogpeppe/go-internal v1.14.1 // indirect
3739
github.com/t-yuki/gocover-cobertura v0.0.0-20180217150009-aaee18c8195c // indirect
3840
github.com/wadey/gocovmerge v0.0.0-20160331181800-b5bfa59ec0ad // indirect
3941
github.com/xo/terminfo v0.0.0-20220910002029-abceb7e1c41e // indirect
42+
golang.org/x/exp v0.0.0-20240909161429-701f63a606c0 // indirect
4043
golang.org/x/mod v0.27.0 // indirect
4144
golang.org/x/sync v0.17.0 // indirect
4245
golang.org/x/term v0.35.0 // indirect
43-
golang.org/x/text v0.17.0 // indirect
46+
golang.org/x/text v0.22.0 // indirect
4447
golang.org/x/tools v0.36.0 // indirect
48+
gopkg.in/check.v1 v1.0.0-20201130134442-10cb98267c6c // indirect
4549
gopkg.in/yaml.v3 v3.0.1 // indirect
4650
gotest.tools/gotestsum v1.13.0 // indirect
4751
)

go.sum

Lines changed: 20 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ github.com/charmbracelet/x/xpty v0.1.3 h1:eGSitii4suhzrISYH50ZfufV3v085BXQwIytcO
2424
github.com/charmbracelet/x/xpty v0.1.3/go.mod h1:poPYpWuLDBFCKmKLDnhBp51ATa0ooD8FhypRwEFtH3Y=
2525
github.com/clipperhouse/uax29/v2 v2.2.0 h1:ChwIKnQN3kcZteTXMgb1wztSgaU+ZemkgWdohwgs8tY=
2626
github.com/clipperhouse/uax29/v2 v2.2.0/go.mod h1:EFJ2TJMRUaplDxHKj1qAEhCtQPW2tJSwu5BF98AuoVM=
27+
github.com/creack/pty v1.1.9/go.mod h1:oKZEueFk5CKHvIhNR5MUki03XCEU+Q6VDXinZuGJ33E=
2728
github.com/creack/pty v1.1.24 h1:bJrF4RRfyJnbTJqzRLHzcGaZK1NeM5kTC9jGgovnR1s=
2829
github.com/creack/pty v1.1.24/go.mod h1:08sCNb52WyoAwi2QDyzUCTgcvVFhUzewun7wtTfvcwE=
2930
github.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c=
@@ -38,23 +39,31 @@ github.com/google/go-cmp v0.7.0 h1:wk8382ETsv4JYUZwIsn6YpYiWiBsYLSJiTsyBybVuN8=
3839
github.com/google/go-cmp v0.7.0/go.mod h1:pXiqmnSA92OHEEa9HXL2W4E7lf9JzCmGVUdgjX3N/iU=
3940
github.com/google/shlex v0.0.0-20191202100458-e7afc7fbc510 h1:El6M4kTTCOh6aBiKaUGG7oYTSPP8MxqL4YI3kZKwcP4=
4041
github.com/google/shlex v0.0.0-20191202100458-e7afc7fbc510/go.mod h1:pupxD2MaaD3pAXIBCelhxNneeOaAeabZDe5s4K6zSpQ=
42+
github.com/kr/pretty v0.2.1/go.mod h1:ipq/a2n7PKx3OHsz4KJII5eveXtPO4qwEXGdVfWzfnI=
43+
github.com/kr/pretty v0.3.1 h1:flRD4NNwYAUpkphVc1HcthR4KEIFJ65n8Mw5qdRn3LE=
44+
github.com/kr/pretty v0.3.1/go.mod h1:hoEshYVHaxMs3cyo3Yncou5ZscifuDolrwPKZanG3xk=
45+
github.com/kr/pty v1.1.1/go.mod h1:pFQYn66WHrOpPYNljwOMqo10TkYh1fy3cYio2l3bCsQ=
46+
github.com/kr/text v0.1.0/go.mod h1:4Jbv+DJW3UT/LiOwJeYQe1efqtUx/iVham/4vfdArNI=
47+
github.com/kr/text v0.2.0 h1:5Nx0Ya0ZqY2ygV366QzturHI13Jq95ApcVaJBhpS+AY=
48+
github.com/kr/text v0.2.0/go.mod h1:eLer722TekiGuMkidMxC/pM04lWEeraHUUmBw8l2grE=
4149
github.com/lucasb-eyer/go-colorful v1.3.0 h1:2/yBRLdWBZKrf7gB40FoiKfAWYQ0lqNcbuQwVHXptag=
4250
github.com/lucasb-eyer/go-colorful v1.3.0/go.mod h1:R4dSotOR9KMtayYi1e77YzuveK+i7ruzyGqttikkLy0=
43-
github.com/mattn/go-colorable v0.1.13 h1:fFA4WZxdEF4tXPZVKMLwD8oUnCTTo08duU7wxecdEvA=
44-
github.com/mattn/go-colorable v0.1.13/go.mod h1:7S9/ev0klgBDR4GtXTXX8a3vIGJpMovkB8vQcUbaXHg=
45-
github.com/mattn/go-isatty v0.0.16/go.mod h1:kYGgaQfpe5nmfYZH+SKPsOc2e4SrIfOl2e/yFXSvRLM=
51+
github.com/mattn/go-colorable v0.1.14 h1:9A9LHSqF/7dyVVX6g0U9cwm9pG3kP9gSzcuIPHPsaIE=
52+
github.com/mattn/go-colorable v0.1.14/go.mod h1:6LmQG8QLFO4G5z1gPvYEzlUgJ2wF+stgPZH1UqBm1s8=
4653
github.com/mattn/go-isatty v0.0.20 h1:xfD0iDuEKnDkl03q4limB+vH+GxLEtL/jb4xVJSWWEY=
4754
github.com/mattn/go-isatty v0.0.20/go.mod h1:W+V8PltTTMOvKvAeJH7IuucS94S2C6jfK/D7dTCTo3Y=
4855
github.com/mattn/go-runewidth v0.0.19 h1:v++JhqYnZuu5jSKrk9RbgF5v4CGUjqRfBm05byFGLdw=
4956
github.com/mattn/go-runewidth v0.0.19/go.mod h1:XBkDxAl56ILZc9knddidhrOlY5R/pDhgLpndooCuJAs=
5057
github.com/muesli/cancelreader v0.2.2 h1:3I4Kt4BQjOR54NavqnDogx/MIoWBFa0StPA8ELUXHmA=
5158
github.com/muesli/cancelreader v0.2.2/go.mod h1:3XuTXfFS2VjM+HTLZY9Ak0l6eUKfijIfMUZ4EgX0QYo=
59+
github.com/pkg/diff v0.0.0-20210226163009-20ebb0f2a09e/go.mod h1:pJLUxLENpZxwdsKMEsNbx1VGcRFpLqf3715MtcvvzbA=
5260
github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZbAQM=
5361
github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4=
5462
github.com/rivo/uniseg v0.4.7 h1:WUdvkW8uEhrYfLC4ZzdpI2ztxP1I582+49Oc5Mq64VQ=
5563
github.com/rivo/uniseg v0.4.7/go.mod h1:FN3SvrM+Zdj16jyLfmOkMNblXMcoc8DfTHruCPUcx88=
56-
github.com/rogpeppe/go-internal v1.11.0 h1:cWPaGQEPrBb5/AsnsZesgZZ9yb1OQ+GOISoDNXVBh4M=
57-
github.com/rogpeppe/go-internal v1.11.0/go.mod h1:ddIwULY96R17DhadqLgMfk9H9tvdUzkipdSkR5nkCZA=
64+
github.com/rogpeppe/go-internal v1.9.0/go.mod h1:WtVeX8xhTBvf0smdhujwtBcq4Qrzq/fJaraNFVN+nFs=
65+
github.com/rogpeppe/go-internal v1.14.1 h1:UQB4HGPB6osV0SQTLymcB4TgvyWu6ZyliaW0tI/otEQ=
66+
github.com/rogpeppe/go-internal v1.14.1/go.mod h1:MaRKkUm5W0goXpeCfT7UZI6fk/L7L7so1lCWt35ZSgc=
5867
github.com/stretchr/testify v1.11.1 h1:7s2iGBzp5EwR7/aIZr8ao5+dra3wiQyKjjFuvgVKu7U=
5968
github.com/stretchr/testify v1.11.1/go.mod h1:wZwfW3scLgRK+23gO65QZefKpKQRnfz6sD981Nm4B6U=
6069
github.com/t-yuki/gocover-cobertura v0.0.0-20180217150009-aaee18c8195c h1:+aPplBwWcHBo6q9xrfWdMrT9o4kltkmmvpemgIjep/8=
@@ -63,24 +72,24 @@ github.com/wadey/gocovmerge v0.0.0-20160331181800-b5bfa59ec0ad h1:W0LEBv82YCGEtc
6372
github.com/wadey/gocovmerge v0.0.0-20160331181800-b5bfa59ec0ad/go.mod h1:Hy8o65+MXnS6EwGElrSRjUzQDLXreJlzYLlWiHtt8hM=
6473
github.com/xo/terminfo v0.0.0-20220910002029-abceb7e1c41e h1:JVG44RsyaB9T2KIHavMF/ppJZNG9ZpyihvCd0w101no=
6574
github.com/xo/terminfo v0.0.0-20220910002029-abceb7e1c41e/go.mod h1:RbqR21r5mrJuqunuUZ/Dhy/avygyECGrLceyNeo4LiM=
66-
golang.org/x/exp v0.0.0-20231006140011-7918f672742d h1:jtJma62tbqLibJ5sFQz8bKtEM8rJBtfilJ2qTU199MI=
67-
golang.org/x/exp v0.0.0-20231006140011-7918f672742d/go.mod h1:ldy0pHrwJyGW56pPQzzkH36rKxoZW1tw7ZJpeKx+hdo=
75+
golang.org/x/exp v0.0.0-20240909161429-701f63a606c0 h1:e66Fs6Z+fZTbFBAxKfP3PALWBtpfqks2bwGcexMxgtk=
76+
golang.org/x/exp v0.0.0-20240909161429-701f63a606c0/go.mod h1:2TbTHSBQa924w8M6Xs1QcRcFwyucIwBGpK1p2f1YFFY=
6877
golang.org/x/mod v0.27.0 h1:kb+q2PyFnEADO2IEF935ehFUXlWiNjJWtRNgBLSfbxQ=
6978
golang.org/x/mod v0.27.0/go.mod h1:rWI627Fq0DEoudcK+MBkNkCe0EetEaDSwJJkCcjpazc=
7079
golang.org/x/sync v0.17.0 h1:l60nONMj9l5drqw6jlhIELNv9I0A4OFgRsG9k2oT9Ug=
7180
golang.org/x/sync v0.17.0/go.mod h1:9KTHXmSnoGruLpwFjVSX0lNNA75CykiMECbovNTZqGI=
72-
golang.org/x/sys v0.0.0-20220811171246-fbc7d0a398ab/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
7381
golang.org/x/sys v0.6.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
7482
golang.org/x/sys v0.36.0 h1:KVRy2GtZBrk1cBYA7MKu5bEZFxQk4NIDV6RLVcC8o0k=
7583
golang.org/x/sys v0.36.0/go.mod h1:OgkHotnGiDImocRcuBABYBEXf8A9a87e/uXjp9XT3ks=
7684
golang.org/x/term v0.35.0 h1:bZBVKBudEyhRcajGcNc3jIfWPqV4y/Kt2XcoigOWtDQ=
7785
golang.org/x/term v0.35.0/go.mod h1:TPGtkTLesOwf2DE8CgVYiZinHAOuy5AYUYT1lENIZnA=
78-
golang.org/x/text v0.17.0 h1:XtiM5bkSOt+ewxlOE/aE/AKEHibwj/6gvWMl9Rsh0Qc=
79-
golang.org/x/text v0.17.0/go.mod h1:BuEKDfySbSR4drPmRPG/7iBdf8hvFMuRexcpahXilzY=
86+
golang.org/x/text v0.22.0 h1:bofq7m3/HAFvbF51jz3Q9wLg3jkvSPuiZu/pD1XwgtM=
87+
golang.org/x/text v0.22.0/go.mod h1:YRoo4H8PVmsu+E3Ou7cqLVH8oXWIHVoX0jqUWALQhfY=
8088
golang.org/x/tools v0.36.0 h1:kWS0uv/zsvHEle1LbV5LE8QujrxB3wfQyxHfhOk0Qkg=
8189
golang.org/x/tools v0.36.0/go.mod h1:WBDiHKJK8YgLHlcQPYQzNCkUxUypCaa5ZegCVutKm+s=
82-
gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405 h1:yhCVgyC4o1eVCa2tZl7eS0r+SDo693bJlVdllGtEeKM=
8390
gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0=
91+
gopkg.in/check.v1 v1.0.0-20201130134442-10cb98267c6c h1:Hei/4ADfdWqJk1ZMxUNpqntNwaWcugrBjAiHlqqRiVk=
92+
gopkg.in/check.v1 v1.0.0-20201130134442-10cb98267c6c/go.mod h1:JHkPIbrfpd72SG/EVd6muEfDQjcINNoR0C8j2r3qZ4Q=
8493
gopkg.in/yaml.v3 v3.0.1 h1:fxVm/GzAzEWqLHuvctI91KS9hhNmmWOoWu0XTYJS7CA=
8594
gopkg.in/yaml.v3 v3.0.1/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM=
8695
gotest.tools/gotestsum v1.13.0 h1:+Lh454O9mu9AMG1APV4o0y7oDYKyik/3kBOiCqiEpRo=

mise-tasks/test_e2e

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#!/usr/bin/env bash
22
#MISE description="Run go e2e tests"
33
#MISE outputs="integration.txt"
4-
#MISE depends="bin"
4+
#MISE depends=["bin"]
55
set -euo pipefail
66

77
if [ "${GITHUB_ACTIONS:-}" = "true" ]; then
@@ -10,4 +10,4 @@ else
1010
GOTESTSUM="gotestsum --format=pkgname-and-test-fails"
1111
fi
1212

13-
exec go tool ${GOTESTSUM} --rerun-fails=2 --packages="./test/..." -- -v ./test/... --count=1 -coverprofile=integration.txt -covermode count
13+
exec go tool ${GOTESTSUM} --rerun-fails=2 --packages="./test/..." -- -v ./test/... --count=1 -coverprofile=integration.txt -covermode count -coverpkg=./...

mise.toml

Lines changed: 31 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,17 @@
1-
21
[env]
32
_.path = ['{{config_root}}/node_modules/.bin']
4-
_.python.venv = { path = "venv", create = true }
3+
4+
[settings]
5+
python.compile = false
6+
experimental = true
7+
8+
[hooks]
9+
postinstall = "mise run install"
510

611
[tools]
712
go = "1.25.3"
813
node = "24.6.0"
9-
python = "3.9.0"
14+
python = "3.9.14"
1015
golangci-lint = "2.4.0"
1116

1217
[tasks."init"]
@@ -30,74 +35,73 @@ sources = ["requirements.txt"]
3035

3136
[tasks."install:go"]
3237
description = "Install golang dependencies"
33-
run = "go mod download"
38+
run = "go mod download all"
3439
sources = ["go.mod", "go.sum"]
3540

3641
[tasks."install"]
3742
depends = ["install:*"]
43+
run = ["python -m pre_commit install --install-hooks"]
3844

3945

4046
[tasks."commit-msg"]
4147
description = "Run commit-msg hooks"
42-
run = [
43-
"npx commitlint --edit $1",
44-
]
48+
run = ["npx commitlint --edit $1"]
4549

4650
[tasks."pre-commit"]
4751
description = "Run pre-commit tasks"
48-
run = "pre-commit"
52+
run = "python -m pre_commit"
53+
54+
[tasks."post-commit"]
55+
description = "Run post-commit tasks"
56+
run = "{{config_root}}/scripts/post-commit"
4957

5058
[tasks."lint"]
51-
run = [
52-
"golangci-lint run",
53-
]
59+
run = ["golangci-lint run"]
5460

5561
[tasks."fmt"]
5662
run = [
57-
"go mod tidy",
58-
"env GOFUMPT_SPLIT_LONG_LINES=on golangci-lint fmt ./...",
63+
"go mod tidy",
64+
"env GOFUMPT_SPLIT_LONG_LINES=on golangci-lint fmt ./...",
65+
"git diff --exit-code || (echo 'Code is not formatted, run mise run fmt locally' && exit 1)",
5966
]
6067

6168
[tasks."prepush"]
6269
depends = ["fmt", "lint", "test"]
6370

6471
[tasks."test:config"]
65-
run = [
66-
"golangci-lint config verify",
67-
]
72+
run = ["golangci-lint config verify"]
6873

6974
[tasks."regenerate:e2e"]
70-
run = [
71-
"go tool gotestsum -- -v ./test/... --count=1 -update",
72-
]
75+
run = ["go tool gotestsum -- -v ./test/... --count=1 -update"]
7376

7477
[tasks."test"]
7578
depends = ["test:*", "test_unit", "test_e2e"]
7679

7780
[tasks."coverage"]
7881
run = [
79-
"go tool gocovmerge integration.txt unit.txt > coverage.txt",
80-
"go tool cover -html=coverage.txt -o coverage.html",
81-
"go tool gocover-cobertura <coverage.txt >coverage.xml"
82+
"go tool gocovmerge integration.txt unit.txt > coverage.txt",
83+
"go tool cover -html=coverage.txt -o coverage.html",
84+
"go tool gocover-cobertura <coverage.txt >coverage.xml",
8285
]
83-
sources = [ "integration.txt", "unit.txt"]
86+
sources = ["integration.txt", "unit.txt"]
8487
outputs = ["coverage.html", "coverage.xml"]
8588

8689
[tasks.bin-package]
8790
description = "Build bubbletea example package"
8891
run = [
8992
"cd bin/${PACKAGE} && go build -o ./dist/${PACKAGE}",
9093
"mkdir -p ./dist",
91-
"cp bin/${PACKAGE}/dist/${PACKAGE} ./dist/${PACKAGE}"
94+
"cp bin/${PACKAGE}/dist/${PACKAGE} ./dist/${PACKAGE}",
9295
]
93-
outputs = [ "dist/${PACKAGE}" ]
94-
sources = [ "bin/${PACKAGE}/**" ]
96+
outputs = ["dist/${PACKAGE}"]
97+
sources = ["bin/${PACKAGE}/**"]
9598

9699
[tasks.bin]
97100
description = "Build all bubbletea example packages"
98101
run = [
102+
"mkdir -p ./dist/",
99103
"PACKAGE=editors mise run bin-package",
100-
"PACKAGE=list mise run bin-package"
104+
"PACKAGE=list mise run bin-package",
101105
]
102106
outputs = ["dist/editors", "dist/list"]
103107
sources = ["bin/**"]

scripts/post-commit

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
#!/usr/bin/env bash
2+
set -e
3+
4+
FROM_REF=${CI_MERGE_REQUEST_TARGET_BRANCH_NAME:-HEAD~1}
5+
TO_REF=HEAD
6+
7+
if git rev-parse --verify "$FROM_REF" >/dev/null 2>&1; then
8+
echo "Running pre-commit between $FROM_REF and $TO_REF"
9+
else
10+
echo "Fetching origin/$FROM_REF..."
11+
git fetch origin "$FROM_REF"
12+
FROM_REF="origin/$FROM_REF"
13+
fi
14+
15+
pre-commit run --from-ref "$FROM_REF" --to-ref "$TO_REF"

0 commit comments

Comments
 (0)