Skip to content

Commit 5960877

Browse files
authored
Merge pull request #8 from QuLogic/gha-update
Update GitHub Actions workflows
2 parents 02b318b + 9b56fbb commit 5960877

File tree

3 files changed

+27
-36
lines changed

3 files changed

+27
-36
lines changed

.github/workflows/codeql-analysis.yml

+18-19
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,13 @@
11
---
2+
23
name: "CodeQL"
34

45
on:
56
push:
6-
branches: [ main ]
7+
branches: [main]
78
pull_request:
89
# The branches below must be a subset of the branches above
9-
branches: [ main ]
10+
branches: [main]
1011
schedule:
1112
- cron: '20 11 * * 1'
1213

@@ -22,22 +23,20 @@ jobs:
2223
strategy:
2324
fail-fast: false
2425
matrix:
25-
language: [ 'python' ]
26+
language: ['python']
2627

2728
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

.github/workflows/lint.yml

+7-15
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
---
2+
13
name: Linting
24
on: [pull_request]
35

@@ -6,21 +8,16 @@ jobs:
68
name: flake8
79
runs-on: ubuntu-latest
810
steps:
9-
- uses: actions/checkout@v2
11+
- uses: actions/checkout@v3
1012

1113
- name: Set up Python 3
12-
uses: actions/setup-python@v1
14+
uses: actions/setup-python@v3
1315

1416
- name: Install flake8
1517
run: pip3 install flake8
1618

1719
- 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
2421

2522
- name: Run flake8
2623
env:
@@ -35,7 +32,7 @@ jobs:
3532
name: caddyfmt
3633
runs-on: ubuntu-latest
3734
steps:
38-
- uses: actions/checkout@v2
35+
- uses: actions/checkout@v3
3936

4037
- name: Install caddy
4138
run: |
@@ -48,12 +45,7 @@ jobs:
4845
sudo apt install caddy
4946
5047
- 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
5749

5850
- name: Run caddy validate
5951
run: caddy validate

.github/workflows/tests.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,10 @@ jobs:
1010
matrix:
1111
python-version: ["3.9", "3.10"]
1212
steps:
13-
- uses: actions/checkout@v2
13+
- uses: actions/checkout@v3
1414

1515
- name: Install Python ${{ matrix.python-version }}
16-
uses: actions/setup-python@v2
16+
uses: actions/setup-python@v3
1717
with:
1818
python-version: ${{ matrix.python-version }}
1919

0 commit comments

Comments
 (0)