File tree 3 files changed +27
-36
lines changed
3 files changed +27
-36
lines changed Original file line number Diff line number Diff line change 1
1
---
2
+
2
3
name : " CodeQL"
3
4
4
5
on :
5
6
push :
6
- branches : [ main ]
7
+ branches : [main]
7
8
pull_request :
8
9
# The branches below must be a subset of the branches above
9
- branches : [ main ]
10
+ branches : [main]
10
11
schedule :
11
12
- cron : ' 20 11 * * 1'
12
13
@@ -22,22 +23,20 @@ jobs:
22
23
strategy :
23
24
fail-fast : false
24
25
matrix :
25
- language : [ 'python' ]
26
+ language : ['python']
26
27
27
28
steps :
28
- - name : Checkout repository
29
- uses : actions/checkout@v3
30
-
31
- # Initializes the CodeQL tools for scanning.
32
- - name : Initialize CodeQL
33
- uses : github/codeql-action/init@v1
34
- with :
35
- languages : ${{ matrix.language }}
36
-
37
- # Autobuild attempts to build any compiled languages (C/C++, C#, or Java).
38
- # If this step fails, then you should remove it and run the build manually (see below)
39
- - name : Autobuild
40
- uses : github/codeql-action/autobuild@v1
41
-
42
- - name : Perform CodeQL Analysis
43
- uses : github/codeql-action/analyze@v1
29
+ - name : Checkout repository
30
+ uses : actions/checkout@v3
31
+
32
+ - name : Initialize CodeQL
33
+ uses : github/codeql-action/init@v1
34
+ with :
35
+ languages : ${{ matrix.language }}
36
+
37
+ # Autobuild attempts to build any compiled languages (C/C++, C#, or Java).
38
+ - name : Autobuild
39
+ uses : github/codeql-action/autobuild@v1
40
+
41
+ - name : Perform CodeQL Analysis
42
+ uses : github/codeql-action/analyze@v1
Original file line number Diff line number Diff line change
1
+ ---
2
+
1
3
name : Linting
2
4
on : [pull_request]
3
5
6
8
name : flake8
7
9
runs-on : ubuntu-latest
8
10
steps :
9
- - uses : actions/checkout@v2
11
+ - uses : actions/checkout@v3
10
12
11
13
- name : Set up Python 3
12
- uses : actions/setup-python@v1
14
+ uses : actions/setup-python@v3
13
15
14
16
- name : Install flake8
15
17
run : pip3 install flake8
16
18
17
19
- name : Set up reviewdog
18
- run : |
19
- mkdir -p "$HOME/bin"
20
- curl -sfL \
21
- https://github.com/reviewdog/reviewdog/raw/master/install.sh | \
22
- sh -s -- -b "$HOME/bin"
23
- echo "$HOME/bin" >> $GITHUB_PATH
20
+ uses : reviewdog/action-setup@v1
24
21
25
22
- name : Run flake8
26
23
env :
35
32
name : caddyfmt
36
33
runs-on : ubuntu-latest
37
34
steps :
38
- - uses : actions/checkout@v2
35
+ - uses : actions/checkout@v3
39
36
40
37
- name : Install caddy
41
38
run : |
48
45
sudo apt install caddy
49
46
50
47
- name : Set up reviewdog
51
- run : |
52
- mkdir -p "$HOME/bin"
53
- curl -sfL \
54
- https://github.com/reviewdog/reviewdog/raw/master/install.sh | \
55
- sh -s -- -b "$HOME/bin"
56
- echo "$HOME/bin" >> $GITHUB_PATH
48
+ uses : reviewdog/action-setup@v1
57
49
58
50
- name : Run caddy validate
59
51
run : caddy validate
Original file line number Diff line number Diff line change @@ -10,10 +10,10 @@ jobs:
10
10
matrix :
11
11
python-version : ["3.9", "3.10"]
12
12
steps :
13
- - uses : actions/checkout@v2
13
+ - uses : actions/checkout@v3
14
14
15
15
- name : Install Python ${{ matrix.python-version }}
16
- uses : actions/setup-python@v2
16
+ uses : actions/setup-python@v3
17
17
with :
18
18
python-version : ${{ matrix.python-version }}
19
19
You can’t perform that action at this time.
0 commit comments