-
-
Notifications
You must be signed in to change notification settings - Fork 104
56 lines (47 loc) · 1.23 KB
/
lint.yml
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
on:
push:
branches: [ main, master ]
pull_request:
branches: [ main, master ]
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: ${{ startsWith(github.ref, 'refs/pull/') }}
permissions:
contents: read
# Optional: allow read access to pull request. Use with `only-new-issues` option.
# pull-requests: read
jobs:
go:
runs-on: ubuntu-latest
strategy:
matrix:
go: [ '1.20' ]
steps:
- uses: actions/checkout@v3
- uses: actions/setup-go@v4
with:
go-version: ${{ matrix.go }}
- name: Check formatting
uses: Jerome1337/gofmt-action@v1.0.5
with:
gofmt-path: '.'
gofmt-flags: '-l -d'
- name: Goimports Check
uses: DarthBenro008/goimports-check-action@v0.1.0
with:
root-path: './'
ui:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [ "18.5.0" ]
steps:
- name: Set up Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
- name: Check out code
uses: actions/checkout@v3
- run: npm ci --no-optional
- run: npm run prettier