@@ -15,35 +15,35 @@ permissions:
15
15
16
16
jobs :
17
17
check :
18
- name : Check
18
+ name : Lint
19
19
runs-on : ubuntu-latest
20
20
strategy :
21
21
matrix :
22
22
check : [fmt, clippy]
23
23
steps :
24
- - name : Checkout repository
24
+ - name : Checkout
25
25
uses : actions/checkout@v4
26
26
27
- - name : Install Rust toolchain
27
+ - name : Set up Rust
28
28
uses : dtolnay/rust-toolchain@stable
29
29
with :
30
30
components : ${{ matrix.check == 'fmt' && 'rustfmt' || 'clippy' }}
31
31
32
- - name : Setup Rust cache
32
+ - name : Cache Cargo
33
33
uses : Swatinem/rust-cache@v2
34
34
with :
35
35
key : ${{ matrix.check }}
36
36
37
- - name : Run cargo fmt
37
+ - name : Run Cargo Fmt
38
38
if : matrix.check == 'fmt'
39
39
run : cargo fmt --check
40
40
41
- - name : Run cargo clippy
41
+ - name : Run Cargo Clippy
42
42
if : matrix.check == 'clippy'
43
43
run : cargo clippy --all-targets --all-features --no-deps -- -D warnings
44
44
45
45
test-partial :
46
- name : Test Partial
46
+ name : Tests ( Partial)
47
47
runs-on : ubuntu-latest
48
48
# Run on forks.
49
49
if : github.event.pull_request.head.repo.fork == true
@@ -53,18 +53,18 @@ jobs:
53
53
matrix :
54
54
postgres_version : [17, 16, 15, 14]
55
55
steps :
56
- - name : Checkout repository
56
+ - name : Checkout
57
57
uses : actions/checkout@v4
58
58
59
- - name : Install Rust toolchain
59
+ - name : Set up Rust
60
60
uses : dtolnay/rust-toolchain@stable
61
61
62
- - name : Setup Rust cache
62
+ - name : Cache Cargo
63
63
uses : Swatinem/rust-cache@v2
64
64
with :
65
65
key : test-partial
66
66
67
- - name : Start Docker Compose Environment (Postgres ${{ matrix.postgres_version }})
67
+ - name : Start Docker Compose (Postgres ${{ matrix.postgres_version }})
68
68
run : |
69
69
POSTGRES_VERSION=${{ matrix.postgres_version }} docker compose -f ./scripts/docker-compose.yaml up -d
70
70
75
75
--no-default-features \
76
76
--locked
77
77
78
- - name : Migrate database
78
+ - name : Migrate Database
79
79
env :
80
80
POSTGRES_USER : postgres
81
81
POSTGRES_PASSWORD : postgres
86
86
sudo apt-get install libpq-dev -y
87
87
./etl-api/scripts/run_migrations.sh
88
88
89
- - name : Run tests
89
+ - name : Run Tests
90
90
run : |
91
91
cargo test \
92
92
--workspace \
@@ -101,7 +101,7 @@ jobs:
101
101
--features iceberg
102
102
103
103
test-full :
104
- name : Test Full
104
+ name : Tests ( Full)
105
105
runs-on : ubuntu-latest
106
106
# Run on non-forks.
107
107
if : github.event.pull_request.head.repo.fork == false
@@ -112,18 +112,18 @@ jobs:
112
112
matrix :
113
113
postgres_version : [17, 16, 15, 14]
114
114
steps :
115
- - name : Checkout repository
115
+ - name : Checkout
116
116
uses : actions/checkout@v4
117
117
118
- - name : Install Rust toolchain
118
+ - name : Set up Rust
119
119
uses : dtolnay/rust-toolchain@stable
120
120
121
- - name : Setup Rust cache
121
+ - name : Cache Cargo
122
122
uses : Swatinem/rust-cache@v2
123
123
with :
124
124
key : test-full
125
125
126
- - name : Start Docker Compose Environment (Postgres ${{ matrix.postgres_version }})
126
+ - name : Start Docker Compose (Postgres ${{ matrix.postgres_version }})
127
127
run : |
128
128
POSTGRES_VERSION=${{ matrix.postgres_version }} docker compose -f ./scripts/docker-compose.yaml up -d
129
129
@@ -134,7 +134,7 @@ jobs:
134
134
--no-default-features \
135
135
--locked
136
136
137
- - name : Migrate database
137
+ - name : Migrate Database
138
138
env :
139
139
POSTGRES_USER : postgres
140
140
POSTGRES_PASSWORD : postgres
@@ -148,21 +148,21 @@ jobs:
148
148
- name : Install cargo-llvm-cov
149
149
uses : taiki-e/install-action@cargo-llvm-cov
150
150
151
- - name : Set up BigQuery environment variables and credentials
151
+ - name : Set up BigQuery Credentials
152
152
run : |
153
153
printf '%s' '${{ secrets.TESTS_BIGQUERY_SA_KEY_JSON }}' > /tmp/bigquery-sa-key.json
154
154
echo "TESTS_BIGQUERY_PROJECT_ID=${{ secrets.TESTS_BIGQUERY_PROJECT_ID }}" >> $GITHUB_ENV
155
155
echo "TESTS_BIGQUERY_SA_KEY_PATH=/tmp/bigquery-sa-key.json" >> $GITHUB_ENV
156
156
157
- - name : Generate code coverage
157
+ - name : Generate Code Coverage
158
158
id : coverage
159
159
run : |
160
160
cargo llvm-cov test \
161
161
--workspace --no-fail-fast \
162
162
--all-features \
163
163
--lcov --output-path lcov.info
164
164
165
- - name : Upload coverage to Coveralls
165
+ - name : Upload Coverage to Coveralls
166
166
uses : coverallsapp/github-action@v2
167
167
with :
168
168
fail-on-error : false
0 commit comments