-
Notifications
You must be signed in to change notification settings - Fork 2
56 lines (54 loc) · 1.67 KB
/
lint-and-test.yaml
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
45
46
47
48
49
50
51
52
53
54
55
56
name: Lint & Test
on:
pull_request:
push:
branches:
- "main"
jobs:
lint-and-test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
- name: Install just
uses: taiki-e/install-action@just
- uses: actions/setup-go@v4
with:
go-version: 1.22.6
cache-dependency-path: ./go.sum
- name: Lint Go (bech32m)
uses: golangci/golangci-lint-action@v6
with:
working-directory: modules/bech32m
version: v1.60.1
- name: Lint Go (cli)
uses: golangci/golangci-lint-action@v6
with:
working-directory: modules/cli
version: v1.60.1
- name: Lint Go (go-sequencer-client)
uses: golangci/golangci-lint-action@v6
with:
working-directory: modules/go-sequencer-client
version: v1.60.1
- name: Lint Markdown
uses: nosborn/github-action-markdown-cli@v3.3.0
with:
files: .
config_file: .markdownlint.json
dot: true
- name: Test Go (cli)
# FIXME - the ProcessPane tests require tty or pty i think.
# no solutions have worked so far https://github.com/actions/runner/issues/241
run: go test ./... -skip TestProcessPane
working-directory: modules/cli
- name: Integration Test Go
run: |
# run dev runner and test-integration
just run dev init
screen -d -m just run dev run
sleep 5
just test-integration
# FIXME - sequencer client tests are empty
# - name: Test Go (go-sequencer-client)
# run: go test ./...
# working-directory: modules/go-sequencer-client