2021-04-04 03:54:09 +02:00
|
|
|
on:
|
2021-04-04 03:44:08 +02:00
|
|
|
push:
|
2021-04-04 03:54:09 +02:00
|
|
|
branches:
|
|
|
|
- main
|
2021-04-04 03:44:08 +02:00
|
|
|
pull_request:
|
2021-04-04 03:54:09 +02:00
|
|
|
branches:
|
|
|
|
- main
|
2021-04-04 03:44:08 +02:00
|
|
|
|
|
|
|
jobs:
|
2021-04-29 10:34:23 +02:00
|
|
|
tests:
|
2021-04-04 03:44:08 +02:00
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v2
|
|
|
|
- run: rustup component add clippy
|
|
|
|
- uses: actions-rs/clippy-check@v1
|
|
|
|
with:
|
|
|
|
token: ${{ secrets.GITHUB_TOKEN }}
|
|
|
|
args: --all-features
|
2021-04-29 10:34:23 +02:00
|
|
|
- name: Build
|
|
|
|
run: cargo build
|
|
|
|
- name: Run tests
|
|
|
|
run: cargo test
|
|
|
|
integration_tests:
|
2021-04-04 03:54:09 +02:00
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
2021-04-04 17:17:48 +02:00
|
|
|
- uses: actions/checkout@v2
|
2021-04-04 03:44:08 +02:00
|
|
|
- uses: actions-rs/toolchain@v1
|
|
|
|
with:
|
|
|
|
toolchain: stable
|
|
|
|
- uses: actions-rs/cargo@v1
|
|
|
|
with:
|
|
|
|
command: build
|
2021-04-04 03:54:09 +02:00
|
|
|
- uses: actions/setup-go@v2
|
|
|
|
with:
|
|
|
|
go-version: "1.11.0"
|
2021-04-29 10:34:23 +02:00
|
|
|
- name: Run intetgration tests
|
2021-05-26 11:50:03 +02:00
|
|
|
run: ./integration_test.sh
|