-
Notifications
You must be signed in to change notification settings - Fork 0
36 lines (34 loc) · 936 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
name: Run tests
on: [push]
jobs:
build:
name: Run tests
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
- name: Start MongoDB
uses: supercharge/mongodb-github-action@1.6.0
with:
mongodb-version: 5
- name: Setup minio
run: |
docker run -d -p 9000:9000 --name minio -e "MINIO_ACCESS_KEY=KEY" -e "MINIO_SECRET_KEY=MYSECRET" minio/minio server /data
- uses: actions-rs/toolchain@v1
with:
toolchain: stable
- uses: actions-rs/cargo@v1
with:
command: test
audit:
name: audit
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: stable
override: true
- run: cargo install cargo-audit
- run: cargo generate-lockfile
- run: cargo audit --deny warnings