File tree 16 files changed +260
-420
lines changed
16 files changed +260
-420
lines changed Original file line number Diff line number Diff line change 1
1
export const SOURCE_DIR = 'src' ;
2
- export const DIST_DIR = 'plugins/victorialogs-datasource ' ;
2
+ export const DIST_DIR = 'plugins/frontend ' ;
Original file line number Diff line number Diff line change 1
- name : Update docs
1
+ name : update docs
2
2
3
3
on :
4
4
push :
5
5
branches :
6
6
- main
7
7
paths :
8
- - " .github/workflows/docs.yaml"
9
- - " README.md"
10
- - " docs/**"
8
+ - .github/workflows/docs.yaml
9
+ - README.md
10
+ - docs/**
11
11
12
12
jobs :
13
13
update-docs :
22
22
repository : VictoriaMetrics/victorialogs-datasource
23
23
ref : main
24
24
token : ${{ secrets.VM_BOT_GH_TOKEN }}
25
- path : " __vm -datasource-repo"
25
+ path : " __vl -datasource-repo"
26
26
27
27
- name : Check out VM code
28
28
uses : actions/checkout@v4
63
63
sed -i 's|docs/assets/||g' ../__vm-docs-repo/docs/VictoriaLogs/victorialogs-datasource.md
64
64
65
65
cp docs/assets/* ../__vm-docs-repo/docs/VictoriaLogs/
66
- working-directory : " __vm -datasource-repo"
66
+ working-directory : " __vl -datasource-repo"
67
67
68
68
- name : Commit and push changes
69
69
run : |
Original file line number Diff line number Diff line change 1
- name : main
1
+ name : check / backend
2
2
on :
3
3
push :
4
4
branches :
5
5
- main
6
- paths-ignore :
7
- - " src/**"
8
- - " **.md"
6
+ paths :
7
+ - .github/workflows/pr-checks-backend.yml
8
+ - go.*
9
+ - vendor/**
10
+ - pkg/**
9
11
pull_request :
10
12
branches :
11
13
- main
12
- paths-ignore :
13
- - " src/**"
14
- - " **.md"
14
+ paths :
15
+ - .github/workflows/pr-checks-backend.yml
16
+ - go.*
17
+ - vendor/**
18
+ - pkg/**
19
+
15
20
permissions :
16
21
contents : read
17
22
@@ -25,10 +30,10 @@ jobs:
25
30
runs-on : ubuntu-latest
26
31
steps :
27
32
- name : Code checkout
28
- uses : actions/checkout@v3
33
+ uses : actions/checkout@v4
29
34
30
35
- name : Setup Go
31
- uses : actions/setup-go@v3
36
+ uses : actions/setup-go@v5
32
37
with :
33
38
go-version : 1.21.6
34
39
check-latest : true
@@ -48,40 +53,32 @@ jobs:
48
53
runs-on : ubuntu-latest
49
54
steps :
50
55
- name : Code checkout
51
- uses : actions/checkout@v3
56
+ uses : actions/checkout@v4
52
57
53
58
- name : Setup Go
54
- uses : actions/setup-go@v3
59
+ uses : actions/setup-go@v5
55
60
with :
56
61
go-version : 1.21.6
57
62
check-latest : true
58
63
cache : true
59
64
60
65
- name : run tests
61
66
run : |
62
- make ${{ matrix.scenario}}
67
+ make ${{ matrix.scenario }}
63
68
64
69
build :
65
70
needs : test
66
71
name : build
67
72
runs-on : ubuntu-latest
68
73
steps :
69
74
- name : Code checkout
70
- uses : actions/checkout@v3
71
-
72
- - name : Setup Go
73
- id : go
74
- uses : actions/setup-go@v3
75
- with :
76
- go-version : 1.21.6
77
- check-latest : true
78
- cache : true
75
+ uses : actions/checkout@v4
79
76
80
- - uses : actions/cache@v3
77
+ - uses : actions/cache@v4
81
78
with :
82
79
path : gocache-for-docker
83
80
key : gocache-docker-${{ runner.os }}-${{ steps.go.outputs.go-version }}-${{ hashFiles('go.mod') }}
84
81
85
82
- name : Build
86
83
run : |
87
- make victorialogs -backend-plugin-build
84
+ make vl -backend-plugin-build
Original file line number Diff line number Diff line change
1
+ name : check / frontend
2
+
3
+ on :
4
+ push :
5
+ branches : [main]
6
+ paths :
7
+ - ' .github/workflow/pr-checks-frontend.yml'
8
+ - ' **/*.ts'
9
+ - ' **/*.tsx'
10
+ - ' **/yarn.lock'
11
+ - ' **/package.json'
12
+ pull_request :
13
+ branches : [main]
14
+ paths :
15
+ - ' .github/workflow/pr-checks-frontend.yml'
16
+ - ' **/*.ts'
17
+ - ' **/*.tsx'
18
+ - ' **/yarn.lock'
19
+ - ' **/package.json'
20
+
21
+ jobs :
22
+ run-check :
23
+ name : check
24
+ runs-on : ubuntu-latest
25
+ strategy :
26
+ matrix :
27
+ scenario : ["make vl-frontend-plugin-build", "yarn test"]
28
+ steps :
29
+ - name : Code checkout
30
+ uses : actions/checkout@v4
31
+
32
+ - name : Set up node
33
+ uses : actions/setup-node@v4
34
+ with :
35
+ node-version : 20.9.0
36
+
37
+ - name : Install all dependencies
38
+ run : yarn install
39
+
40
+ - name : Run
41
+ run : |
42
+ ${{ matrix.scenario }}
Load Diff This file was deleted.
Load Diff This file was deleted.
Original file line number Diff line number Diff line change
1
+ name : codeql / backend
2
+
3
+ on :
4
+ push :
5
+ branches : [main]
6
+ paths :
7
+ - .github/workflows/pr-checks-backend.yml
8
+ - go.*
9
+ - vendor/**
10
+ - pkg/**
11
+ pull_request :
12
+ # The branches below must be a subset of the branches above
13
+ branches : [main]
14
+ paths :
15
+ - .github/workflows/pr-checks-backend.yml
16
+ - go.*
17
+ - vendor/**
18
+ - pkg/**
19
+
20
+ concurrency :
21
+ group : ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
22
+ cancel-in-progress : true
23
+
24
+ jobs :
25
+ analyze :
26
+ name : Analyze
27
+ runs-on : ubuntu-latest
28
+ permissions :
29
+ actions : read
30
+ contents : read
31
+ security-events : write
32
+
33
+ steps :
34
+ - name : Checkout repository
35
+ uses : actions/checkout@v4
36
+
37
+ - name : Set up Go
38
+ uses : actions/setup-go@v5
39
+ with :
40
+ go-version : 1.21.6
41
+ check-latest : true
42
+ cache : true
43
+ if : ${{ matrix.language == 'go' }}
44
+
45
+ - name : Initialize CodeQL
46
+ uses : github/codeql-action/init@v3
47
+ with :
48
+ languages : go
49
+
50
+ - name : Autobuild
51
+ uses : github/codeql-action/autobuild@v3
52
+
53
+ - name : Perform CodeQL Analysis
54
+ uses : github/codeql-action/analyze@v3
You can’t perform that action at this time.
0 commit comments