-
Notifications
You must be signed in to change notification settings - Fork 0
45 lines (40 loc) · 1.35 KB
/
rust.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
42
43
44
45
name: Rust
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
env:
CARGO_TERM_COLOR: always
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: shogo82148/actions-setup-mysql@v1
with:
mysql-version: '8.0' # 5.6, 5.7 10.6, 10.5, 10.4, 10.3
distribution: 'mysql' # or mariadb
auto-start: true
# my-cnf: my.cnf
root-password: "password for the root user"
user: "xiayu"
password: "password for the new user"
- name: Prepare MySQL
run: mysql -uroot -h127.0.0.1 -e 'SELECT version()'
- uses: harmon758/postgresql-action@v1
with:
postgresql version: '11' # See https://hub.docker.com/_/postgres for available versions
postgresql db: 'xiayu' # db name
postgresql user: 'xiayu'
postgresql password: ''
- name: Prepare PostgreSQL
run: 'which psql; ps aux'
- uses: 280780363/[email protected]
with:
accept eula: Y #Required, ACCEPT_EULA confirms your acceptance of the End-User Licensing Agreement.
sa password: SqlSever123123 # Optional, default value is SqlSever123123.
- name: Prepare MSSQL
run: 'ps aux'
- name: Run tests
run: cargo test --features json --features uuid --features chrono --features docs --doc --tests -- --nocapture