Skip to content

Commit 7b43a77

Browse files
committed
refactor linters
1 parent 6258c56 commit 7b43a77

File tree

9 files changed

+49
-264
lines changed

9 files changed

+49
-264
lines changed

.github/workflows/linters.yml

Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
name: Run all linters
2+
on: [push]
3+
concurrency:
4+
group: ${{ github.workflow }}-${{ github.ref }}
5+
cancel-in-progress: true
6+
jobs:
7+
test:
8+
strategy:
9+
fail-fast: false
10+
matrix:
11+
cmd: ['lint-pre-commit']
12+
defaults:
13+
run:
14+
working-directory: wasp
15+
runs-on: ubuntu-latest
16+
steps:
17+
- uses: actions/checkout@v3
18+
- name: Check for changes in Framework
19+
uses: dorny/paths-filter@de90cc6fb38fc0963ad72b210f1f284cd68cea36 # v3.0.2
20+
id: changes
21+
with:
22+
filters: |
23+
src:
24+
- 'wasp/**'
25+
- name: Install Devbox
26+
uses: jetify-com/[email protected]
27+
with:
28+
enable-cache: 'true'
29+
- name: Set up Go
30+
uses: actions/setup-go@v5
31+
with:
32+
go-version: '1.24.0'
33+
- name: Cache Go modules
34+
uses: actions/cache@v4
35+
with:
36+
path: |
37+
~/.cache/go-build
38+
~/go/pkg/mod
39+
key: go-modules-${{ hashFiles('wasp/go.sum') }}-${{ runner.os }}-wasp
40+
restore-keys: |
41+
go-modules-${{ runner.os }}-wasp
42+
go-modules-${{ runner.os }}
43+
- name: Install dependencies
44+
run: go mod download
45+
- name: Run tests
46+
run: |
47+
devbox run ${{ matrix.cmd }}

.github/workflows/seth-test-api.yml

Lines changed: 0 additions & 37 deletions
This file was deleted.

.github/workflows/seth-test-bumping.yml

Lines changed: 0 additions & 37 deletions
This file was deleted.

.github/workflows/seth-test-cli.yml

Lines changed: 0 additions & 37 deletions
This file was deleted.

.github/workflows/seth-test-decode-testnet.yml

Lines changed: 0 additions & 40 deletions
This file was deleted.

.github/workflows/seth-test-decode.yml

Lines changed: 0 additions & 37 deletions
This file was deleted.

.github/workflows/seth-test-others.yml

Lines changed: 0 additions & 37 deletions
This file was deleted.

.github/workflows/seth-test-trace.yml

Lines changed: 0 additions & 37 deletions
This file was deleted.

devbox.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -158,8 +158,8 @@
158158
"go install github.com/smartcontractkit/chainlink-testing-framework/tools/gotestloghelper@latest"
159159
],
160160

161-
"legacy-lib-go-test-unit": [
162-
"cd lib && make test_unit"
161+
"lint-pre-commit": [
162+
"pre-commit run --hook-stage pre-commit --show-diff-on-failure --color=always"
163163
]
164164
}
165165
}

0 commit comments

Comments
 (0)