-
Notifications
You must be signed in to change notification settings - Fork 19
38 lines (31 loc) · 859 Bytes
/
ci.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
name: CI
on:
pull_request:
types: [opened, synchronize, reopened]
push:
branches: [master]
jobs:
test:
strategy:
fail-fast: false
matrix:
version:
- { name: msrv, version: 1.68.0 }
- { name: stable, version: stable }
- { name: nightly, version: nightly }
name: tests / ${{ matrix.version.name }}
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Install Rust (${{ matrix.version.name }})
uses: actions-rust-lang/setup-rust-toolchain@v1.5.0
with:
toolchain: ${{ matrix.version.version }}
- name: Setup MySQL
uses: mirromutth/mysql-action@v1.1
with:
mysql user: 'ci'
mysql password: 'ci'
- run: cargo test
env:
DATABASE_URL: mysql://ci:ci@127.0.0.1:3306