forked from scylladb/scylla-rust-driver
-
Notifications
You must be signed in to change notification settings - Fork 0
41 lines (33 loc) · 939 Bytes
/
authenticate_test.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
name: Authenticate
on:
push:
branches:
- main
- 'branch-*'
pull_request:
branches:
- main
- 'branch-*'
env:
CARGO_TERM_COLOR: always
RUST_BACKTRACE: full
jobs:
build:
timeout-minutes: 60
name: Run Authentication tests
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Update rust toolchain
run: rustup update
- name: Start the cluster
run: docker compose -f test/cluster/docker-compose-passauth.yml up -d
- name: Run tests
run: SCYLLA_URI=172.43.0.2 RUST_LOG=trace cargo test --verbose authenticate_superuser -- custom_authentication --ignored
- name: Stop the cluster
if: ${{ always() }}
run: docker compose -f test/cluster/docker-compose-passauth.yml stop
- name: Print the cluster logs
if: ${{ always() }}
run: docker compose -f test/cluster/docker-compose-passauth.yml logs