File tree 2 files changed +38
-25
lines changed
2 files changed +38
-25
lines changed Original file line number Diff line number Diff line change 7
7
paths-ignore : ['**.yml', '!.github/workflows/docs.yml']
8
8
workflow_dispatch :
9
9
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
-
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' }}
27
13
14
+ jobs :
28
15
deploy :
29
16
if : github.event_name == 'push' && github.ref_name == 'main' && github.repository == 'ttytm/vibe'
30
17
runs-on : ubuntu-latest
31
- concurrency :
32
- group : ${{ github.workflow }}-${{ github.ref }}
33
- cancel-in-progress : ${{ github.ref_name != 'main' }}
34
18
permissions :
35
19
contents : read
36
20
pages : write
Original file line number Diff line number Diff line change 4
4
workflow_call :
5
5
6
6
jobs :
7
- verify :
7
+ format :
8
8
runs-on : ubuntu-latest
9
9
steps :
10
10
- name : Restore cache
15
15
~/.vmodules
16
16
key : ubuntu-latest-${{ github.sha }}
17
17
fail-on-cache-miss : true
18
- - name : Setup V
19
- run : ~/v/v symlink && v version
20
18
- 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
22
32
- 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
You can’t perform that action at this time.
0 commit comments