@@ -10,127 +10,127 @@ on:
10
10
- main
11
11
12
12
jobs :
13
- rust :
14
- runs-on : ubuntu-latest
15
- container : ubuntu:20.04
16
- services :
17
- # Label used to access the service container
18
- postgres :
19
- # Docker Hub image
20
- image : postgres
21
- env :
22
- POSTGRES_PASSWORD : postgres
23
- # Set health checks to wait until postgres has started
24
- options : >-
25
- --health-cmd pg_isready
26
- --health-interval 10s
27
- --health-timeout 5s
28
- --health-retries 5
29
- # mysql
30
- mysql :
31
- image : ghcr.io/wangxiaoying/mysql:latest
32
- env :
33
- MYSQL_DATABASE : mysql
34
- MYSQL_ROOT_PASSWORD : mysql
35
- LANG : C.UTF-8
36
- ports :
37
- - 3306:3306
38
- options : >-
39
- --health-cmd "mysqladmin ping"
40
- --health-interval 10s
41
- --health-timeout 10s
42
- --health-retries 5
43
- mssql :
44
- image : mcr.microsoft.com/mssql/server:2019-latest
45
- env :
46
- ACCEPT_EULA : y
47
- SA_PASSWORD : mssql!Password
48
- ports :
49
- - 1433:1433
50
- options : >-
51
- --health-cmd "/opt/mssql-tools/bin/sqlcmd -S localhost -U sa -P \"$SA_PASSWORD\" -Q 'SELECT 1' || exit 1"
52
- --health-interval 10s
53
- --health-timeout 5s
54
- --health-retries 20
55
- steps :
56
- - uses : actions/checkout@v2
13
+ # rust:
14
+ # runs-on: ubuntu-latest
15
+ # container: ubuntu:20.04
16
+ # services:
17
+ # # Label used to access the service container
18
+ # postgres:
19
+ # # Docker Hub image
20
+ # image: postgres
21
+ # env:
22
+ # POSTGRES_PASSWORD: postgres
23
+ # # Set health checks to wait until postgres has started
24
+ # options: >-
25
+ # --health-cmd pg_isready
26
+ # --health-interval 10s
27
+ # --health-timeout 5s
28
+ # --health-retries 5
29
+ # # mysql
30
+ # mysql:
31
+ # image: ghcr.io/wangxiaoying/mysql:latest
32
+ # env:
33
+ # MYSQL_DATABASE: mysql
34
+ # MYSQL_ROOT_PASSWORD: mysql
35
+ # LANG: C.UTF-8
36
+ # ports:
37
+ # - 3306:3306
38
+ # options: >-
39
+ # --health-cmd "mysqladmin ping"
40
+ # --health-interval 10s
41
+ # --health-timeout 10s
42
+ # --health-retries 5
43
+ # mssql:
44
+ # image: mcr.microsoft.com/mssql/server:2019-latest
45
+ # env:
46
+ # ACCEPT_EULA: y
47
+ # SA_PASSWORD: mssql!Password
48
+ # ports:
49
+ # - 1433:1433
50
+ # options: >-
51
+ # --health-cmd "/opt/mssql-tools/bin/sqlcmd -S localhost -U sa -P \"$SA_PASSWORD\" -Q 'SELECT 1' || exit 1"
52
+ # --health-interval 10s
53
+ # --health-timeout 5s
54
+ # --health-retries 20
55
+ # steps:
56
+ # - uses: actions/checkout@v2
57
57
58
- - name : Install tools
59
- run : |
60
- apt-get update
61
- apt-get install -y curl postgresql-client build-essential pkg-config libssl-dev git sqlite3 libsqlite3-dev mysql-client python3 python3-pip libicu66 libkrb5-dev libclang-dev
62
- pip3 install mssql-cli
63
- pip3 install cli-helpers==2.2.0
64
- ln -s /usr/bin/python3 /usr/bin/python
65
- echo "Cache Version ${{ secrets.CACHE_VERSION }}"
66
- env :
67
- DEBIAN_FRONTEND : noninteractive
58
+ # - name: Install tools
59
+ # run: |
60
+ # apt-get update
61
+ # apt-get install -y curl postgresql-client build-essential pkg-config libssl-dev git sqlite3 libsqlite3-dev mysql-client python3 python3-pip libicu66 libkrb5-dev libclang-dev
62
+ # pip3 install mssql-cli
63
+ # pip3 install cli-helpers==2.2.0
64
+ # ln -s /usr/bin/python3 /usr/bin/python
65
+ # echo "Cache Version ${{ secrets.CACHE_VERSION }}"
66
+ # env:
67
+ # DEBIAN_FRONTEND: noninteractive
68
68
69
- - name : Install Rust
70
- uses : actions-rs/toolchain@v1
71
- with :
72
- toolchain : 1.65.0
73
- components : rustfmt
74
- default : true
69
+ # - name: Install Rust
70
+ # uses: actions-rs/toolchain@v1
71
+ # with:
72
+ # toolchain: 1.71.1
73
+ # components: rustfmt
74
+ # default: true
75
75
76
- - uses : actions/cache@v2
77
- with :
78
- path : |
79
- ~/.cargo/bin/
80
- ~/.cargo/registry/index/
81
- ~/.cargo/registry/cache/
82
- ~/.cargo/git/db/
83
- target/
84
- key : ${{ runner.os }}-cargo-${{ secrets.CACHE_VERSION }}-${{ hashFiles('**/Cargo.lock') }}
76
+ # - uses: actions/cache@v2
77
+ # with:
78
+ # path: |
79
+ # ~/.cargo/bin/
80
+ # ~/.cargo/registry/index/
81
+ # ~/.cargo/registry/cache/
82
+ # ~/.cargo/git/db/
83
+ # target/
84
+ # key: ${{ runner.os }}-cargo-${{ secrets.CACHE_VERSION }}-${{ hashFiles('**/Cargo.lock') }}
85
85
86
- - name : Install other dependent tools
87
- run : |
88
- if [ ! -f "$HOME/.cargo/bin/just" ]; then curl --proto '=https' --tlsv1.2 -sSf https://just.systems/install.sh | bash -s -- --to ~/.cargo/bin; fi
86
+ # - name: Install other dependent tools
87
+ # run: |
88
+ # if [ ! -f "$HOME/.cargo/bin/just" ]; then curl --proto '=https' --tlsv1.2 -sSf https://just.systems/install.sh | bash -s -- --to ~/.cargo/bin; fi
89
89
90
- - name : Seed the database
91
- run : just seed-db
92
- env :
93
- POSTGRES_URL : " postgresql://postgres:postgres@postgres:5432/postgres"
94
- SQLITE_URL : " sqlite:///tmp/test.db"
95
- MYSQL_HOST : mysql
96
- MYSQL_PORT : 3306
97
- MYSQL_DB : mysql
98
- MYSQL_USER : root
99
- MYSQL_PASSWORD : mysql
100
- MSSQL_HOST : mssql
101
- MSSQL_PORT : 1433
102
- MSSQL_DB : tempdb
103
- MSSQL_USER : sa
104
- MSSQL_PASSWORD : mssql!Password
90
+ # - name: Seed the database
91
+ # run: just seed-db
92
+ # env:
93
+ # POSTGRES_URL: "postgresql://postgres:postgres@postgres:5432/postgres"
94
+ # SQLITE_URL: "sqlite:///tmp/test.db"
95
+ # MYSQL_HOST: mysql
96
+ # MYSQL_PORT: 3306
97
+ # MYSQL_DB: mysql
98
+ # MYSQL_USER: root
99
+ # MYSQL_PASSWORD: mysql
100
+ # MSSQL_HOST: mssql
101
+ # MSSQL_PORT: 1433
102
+ # MSSQL_DB: tempdb
103
+ # MSSQL_USER: sa
104
+ # MSSQL_PASSWORD: mssql!Password
105
105
106
- - name : Is the code formatted?
107
- uses : actions-rs/cargo@v1
108
- with :
109
- command : fmt
110
- args : --all -- --check -q
106
+ # - name: Is the code formatted?
107
+ # uses: actions-rs/cargo@v1
108
+ # with:
109
+ # command: fmt
110
+ # args: --all -- --check -q
111
111
112
- - name : Clippy linting
113
- uses : actions-rs/cargo@v1
114
- with :
115
- command : clippy
116
- args : --features all
112
+ # - name: Clippy linting
113
+ # uses: actions-rs/cargo@v1
114
+ # with:
115
+ # command: clippy
116
+ # args: --features all
117
117
118
- - name : Check each feature gate
119
- run : just test-feature-gate
118
+ # - name: Check each feature gate
119
+ # run: just test-feature-gate
120
120
121
- - name : Run tests
122
- run : cargo clean && just test
123
- env :
124
- POSTGRES_URL : " postgresql://postgres:postgres@postgres:5432/postgres"
125
- SQLITE_URL : " sqlite:///tmp/test.db"
126
- MYSQL_URL : " mysql://root:mysql@mysql:3306/mysql"
127
- MSSQL_URL : " mssql://sa:mssql!Password@mssql:1433/tempdb"
121
+ # - name: Run tests
122
+ # run: cargo clean && just test
123
+ # env:
124
+ # POSTGRES_URL: "postgresql://postgres:postgres@postgres:5432/postgres"
125
+ # SQLITE_URL: "sqlite:///tmp/test.db"
126
+ # MYSQL_URL: "mysql://root:mysql@mysql:3306/mysql"
127
+ # MSSQL_URL: "mssql://sa:mssql!Password@mssql:1433/tempdb"
128
128
129
- - name : Test build docs
130
- uses : actions-rs/cargo@v1
131
- with :
132
- command : doc
133
- args : --no-deps --features all
129
+ # - name: Test build docs
130
+ # uses: actions-rs/cargo@v1
131
+ # with:
132
+ # command: doc
133
+ # args: --no-deps --features all
134
134
135
135
python :
136
136
runs-on : ubuntu-latest
@@ -191,7 +191,7 @@ jobs:
191
191
- name : Install Rust
192
192
uses : actions-rs/toolchain@v1
193
193
with :
194
- toolchain : 1.65.0
194
+ toolchain : 1.71.1
195
195
components : rustfmt
196
196
default : true
197
197
0 commit comments