File tree Expand file tree Collapse file tree 5 files changed +42
-4
lines changed Expand file tree Collapse file tree 5 files changed +42
-4
lines changed Original file line number Diff line number Diff line change 5
5
pull_request :
6
6
7
7
jobs :
8
- ci :
9
- name : Continuous Integration
8
+ ci-node :
9
+ name : Continuous Integration Node
10
10
runs-on : ubuntu-latest
11
11
strategy :
12
12
matrix :
@@ -20,10 +20,39 @@ jobs:
20
20
- run : npm ci
21
21
- run : npm test
22
22
- run : npm run lint
23
+ ci-db :
24
+ name : Continuous Integration Database
25
+ runs-on : ubuntu-latest
26
+ strategy :
27
+ matrix :
28
+ python-version : ["3.10"]
29
+ steps :
30
+ - uses : actions/checkout@v3
31
+ with :
32
+ fetch-depth : 0
33
+ - name : Set up Python ${{ matrix.python-version }}
34
+ uses : actions/setup-python@v3
35
+ with :
36
+ python-version : ${{ matrix.python-version }}
37
+ - name : Cache requirements
38
+ uses : actions/cache@v3
39
+ with :
40
+ path : ~/.cache/pip
41
+ key : ${{ runner.os }}-pip-${{ hashFiles('**/requirements.txt') }}
42
+ restore-keys : |
43
+ ${{ runner.os }}-pip-
44
+ - name : Install requirements
45
+ if : steps.cache.outputs.cache-hit != 'true'
46
+ run : |
47
+ python -m pip install --upgrade pip
48
+ pip install -r db/linting/requirements.txt
49
+ - name : Analysing the SQL code
50
+ run : |
51
+ bash db/linting/lint.sh
23
52
cd :
24
53
name : Continuous Deployment
25
54
runs-on : ubuntu-latest
26
- needs : ci
55
+ needs : [ci-node,ci-db]
27
56
if : startsWith(github.ref, 'refs/tags/v')
28
57
steps :
29
58
- name : Checkout the repository
Original file line number Diff line number Diff line change @@ -2,4 +2,6 @@ node_modules/
2
2
3
3
local_folder /
4
4
5
- dist /
5
+ dist /
6
+
7
+ .venv /
Original file line number Diff line number Diff line change
1
+ [sqlfluff]
2
+ large_file_skip_char_limit = 0
3
+ large_file_skip_byte_limit = 0
4
+ exclude_rules = L016,LT05,RF05
Original file line number Diff line number Diff line change
1
+ echo ' Linting migrations folder'
2
+ sqlfluff lint source/migrations/ --dialect postgres --ignore parsing --config db/linting/.sqlfluff
Original file line number Diff line number Diff line change
1
+ sqlfluff >= 2.0.0 , <= 2.1.0
You can’t perform that action at this time.
0 commit comments