Skip to content

Commit 9bb873f

Browse files
committed
ci: update linting
1 parent 0c70c27 commit 9bb873f

File tree

2 files changed

+38
-25
lines changed

2 files changed

+38
-25
lines changed

.github/workflows/docs.yml

+4-20
Original file line numberDiff line numberDiff line change
@@ -7,30 +7,14 @@ on:
77
paths-ignore: ['**.yml', '!.github/workflows/docs.yml']
88
workflow_dispatch:
99

10-
jobs:
11-
check-docs:
12-
runs-on: ubuntu-latest
13-
concurrency:
14-
group: ${{ github.workflow }}-${{ github.ref_name == 'main' && github.sha || github.ref }}
15-
cancel-in-progress: true
16-
steps:
17-
- uses: actions/checkout@v4
18-
- name: Setup V
19-
uses: vlang/[email protected]
20-
- name: Setup Dependencies
21-
uses: awalsh128/cache-apt-pkgs-action@latest
22-
with:
23-
packages: libcurl4-openssl-dev
24-
version: 1.0
25-
- name: Check markdown
26-
run: v check-md -hide-warnings ~/.vmodules/vibe
10+
concurrency:
11+
group: ${{ github.workflow }}-${{ github.ref }}
12+
cancel-in-progress: ${{ github.ref_name != 'main' }}
2713

14+
jobs:
2815
deploy:
2916
if: github.event_name == 'push' && github.ref_name == 'main' && github.repository == 'ttytm/vibe'
3017
runs-on: ubuntu-latest
31-
concurrency:
32-
group: ${{ github.workflow }}-${{ github.ref }}
33-
cancel-in-progress: ${{ github.ref_name != 'main' }}
3418
permissions:
3519
contents: read
3620
pages: write

.github/workflows/lint.yml

+34-5
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ on:
44
workflow_call:
55

66
jobs:
7-
verify:
7+
format:
88
runs-on: ubuntu-latest
99
steps:
1010
- name: Restore cache
@@ -15,9 +15,38 @@ jobs:
1515
~/.vmodules
1616
key: ubuntu-latest-${{ github.sha }}
1717
fail-on-cache-miss: true
18-
- name: Setup V
19-
run: ~/v/v symlink && v version
2018
- name: Verify formatting
21-
run: v fmt -verify ~/.vmodules/vibe && exit 0 || v fmt -diff . && exit 1
19+
run: ~/v/v fmt -verify ~/.vmodules/vibe && exit 0 || v fmt -diff . && exit 1
20+
21+
vet:
22+
runs-on: ubuntu-latest
23+
steps:
24+
- name: Restore cache
25+
uses: actions/cache/restore@v4
26+
with:
27+
path: |
28+
~/v
29+
~/.vmodules
30+
key: ubuntu-latest-${{ github.sha }}
31+
fail-on-cache-miss: true
2232
- name: Vet
23-
run: v vet -W ~/.vmodules/vibe
33+
run: ~/v/v vet -W ~/.vmodules/vibe
34+
35+
docs:
36+
runs-on: ubuntu-latest
37+
steps:
38+
- name: Restore cache
39+
uses: actions/cache/restore@v4
40+
with:
41+
path: |
42+
~/v
43+
~/.vmodules
44+
key: ubuntu-latest-${{ github.sha }}
45+
fail-on-cache-miss: true
46+
- name: Setup dependencies
47+
uses: awalsh128/cache-apt-pkgs-action@latest
48+
with:
49+
packages: libcurl4-openssl-dev
50+
version: 1.0
51+
- name: Check markdown
52+
run: ~/v/v check-md -hide-warnings ~/.vmodules/vibe

0 commit comments

Comments
 (0)