-
Notifications
You must be signed in to change notification settings - Fork 27
41 lines (34 loc) · 922 Bytes
/
e2e.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
name: e2e Tests Wadm
on:
pull_request:
branches:
- main
jobs:
test:
name: e2e
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v2
- name: Install latest Rust stable toolchain
uses: actions-rs/toolchain@v1
with:
toolchain: stable
default: true
components: clippy, rustfmt
# Cache: rust
- uses: Swatinem/rust-cache@v2
with:
key: "ubuntu-22.04-rust-cache"
# Run all tests
- name: Run tests
id: test
run: make test-e2e
# if the previous step fails, upload logs
- name: Upload logs for debugging
uses: actions/upload-artifact@v2
if: ${{ failure() && steps.test.outcome == 'failure' }}
with:
name: e2e-logs
path: ./test/e2e_log/*
# Be nice and only retain the logs for 7 days
retention-days: 7