-
Notifications
You must be signed in to change notification settings - Fork 0
74 lines (71 loc) · 2.14 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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
name: test
on:
pull_request:
push:
branches:
- main
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
test:
name: test (${{ matrix.runs-on }})
strategy:
matrix:
runs-on:
- "ubuntu-latest"
- "macos-latest"
- "windows-latest"
runs-on: ${{ matrix.runs-on }}
steps:
- if: runner.os == 'Linux'
run: sudo apt install -y pkg-config libusb-1.0-0-dev libftdi1-dev libudev-dev
- uses: actions/checkout@v3
- uses: actions-rust-lang/setup-rust-toolchain@v1
- run: cargo test
test_slow:
name: test slow (${{ matrix.runs-on }})
strategy:
matrix:
runs-on:
- ubuntu-latest
runs-on: ${{ matrix.runs-on }}
env:
APRS_FI_API_KEY: ${{ secrets.APRS_FI_API_KEY }}
steps:
- if: runner.os == 'Linux'
run: sudo apt install -y pkg-config libusb-1.0-0-dev libftdi1-dev libudev-dev
- uses: actions/checkout@v3
- uses: actions-rust-lang/setup-rust-toolchain@v1
- run: cargo test
# test_all_features:
# name: test all features (${{ matrix.runs-on }})
# runs-on: ${{ matrix.runs-on }}
# strategy:
# matrix:
# runs-on:
# - ubuntu-latest
# fail-fast: false
# services:
# postgres:
# image: postgis/postgis:latest
# env:
# POSTGRES_PASSWORD: test_password
# POSTGRES_DB: test_database
# ports:
# - 5432:5432
# options: --health-cmd pg_isready --health-interval 10s --health-timeout 5s --health-retries 5
# env:
# POSTGRES_HOSTNAME: localhost
# POSTGRES_PORT: 5432
# POSTGRES_DATABASE: test_database
# POSTGRES_USERNAME: postgres
# POSTGRES_PASSWORD: test_password
# APRS_FI_API_KEY: ${{ secrets.APRS_FI_API_KEY }}
# APRS_IS_PASSWORD: ${{ secrets.APRS_IS_PASSWORD }}
# steps:
# - if: runner.os == 'Linux'
# run: sudo apt install -y pkg-config libusb-1.0-0-dev libftdi1-dev libudev-dev
# - uses: actions/checkout@v3
# - uses: actions-rust-lang/setup-rust-toolchain@v1
# - run: cargo test