-
Notifications
You must be signed in to change notification settings - Fork 3
40 lines (33 loc) · 1.15 KB
/
test.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
name: Run integration tests
on:
pull_request:
branches: ["*"]
jobs:
integration-tests:
name: Integration tests
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Install Rust
id: toolchain
uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: stable
override: true
- name: Clippy check
timeout-minutes: 30
run: cargo clippy --all-targets --all-features -- -Dwarnings
- name: Run integration tests
timeout-minutes: 30
run: cargo test --release -- --test-threads=1
slack-notification:
needs: integration-tests
if: always()
uses: ./.github/workflows/slack-msg.yml
with:
heading: ${{ contains(needs.*.result, 'failure') && 'Tests Failed :red_circle:' || 'Tests Passed :large_green_circle:' }}
info: "PR: *${{ github.event.pull_request.title }}* / Branch: *${{ github.event.pull_request.head.ref }}*"
url: "${{ github.event.pull_request.html_url || github.event.head_commit.url }}"
secrets:
webhook: ${{ secrets.SLACK_WEBHOOK_URL }}