-
Notifications
You must be signed in to change notification settings - Fork 2
62 lines (57 loc) · 2.17 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
# III-IV
# Copyright 2023 Julio Merino
name: Test
on: [push, pull_request]
jobs:
lint:
runs-on: ubuntu-latest
timeout-minutes: 15
env:
RUSTC_WRAPPER: "sccache"
SCCACHE_GHA_ENABLED: "true"
steps:
- uses: actions-rs/toolchain@v1
with:
profile: minimal
# Use the latest stable Rust version for lint checks to
# verify any new Clippy warnings that may appear.
toolchain: stable
default: true
components: clippy, rustfmt
- uses: actions/checkout@v2
- uses: mozilla-actions/[email protected]
- run: sudo apt update
- run: sudo apt install pre-commit
- run: ./lint.sh
test-individually:
runs-on: ubuntu-latest
timeout-minutes: 15
env:
AZURE_MAPS_KEY: ${{ secrets.AZURE_MAPS_KEY }}
PGSQL_TEST_HOST: ${{ secrets.PGSQL_TEST_HOST }}
PGSQL_TEST_PORT: ${{ secrets.PGSQL_TEST_PORT }}
PGSQL_TEST_DATABASE: ${{ secrets.PGSQL_TEST_DATABASE }}
PGSQL_TEST_USERNAME: ${{ secrets.PGSQL_TEST_USERNAME }}
PGSQL_TEST_PASSWORD: ${{ secrets.PGSQL_TEST_PASSWORD }}
RUSTC_WRAPPER: "sccache"
SCCACHE_GHA_ENABLED: "true"
steps:
- uses: actions/checkout@v2
- uses: mozilla-actions/[email protected]
- run: ./test.sh all
test-workspace:
runs-on: ubuntu-latest
timeout-minutes: 15
env:
AZURE_MAPS_KEY: ${{ secrets.AZURE_MAPS_KEY }}
PGSQL_TEST_HOST: ${{ secrets.PGSQL_TEST_HOST }}
PGSQL_TEST_PORT: ${{ secrets.PGSQL_TEST_PORT }}
PGSQL_TEST_DATABASE: ${{ secrets.PGSQL_TEST_DATABASE }}
PGSQL_TEST_USERNAME: ${{ secrets.PGSQL_TEST_USERNAME }}
PGSQL_TEST_PASSWORD: ${{ secrets.PGSQL_TEST_PASSWORD }}
RUSTC_WRAPPER: "sccache"
SCCACHE_GHA_ENABLED: "true"
steps:
- uses: actions/checkout@v2
- uses: mozilla-actions/[email protected]
- run: ./test.sh