-
Notifications
You must be signed in to change notification settings - Fork 3
45 lines (39 loc) · 1.03 KB
/
tests.yaml
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
name: coralogix-aws-shipper tests
on:
pull_request:
branches:
- master
- dev
paths:
- "src/**"
- "Cargo.toml"
- "Cargo.lock"
- "template.yaml"
- "requirements.txt"
- "Makefile"
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: '3.10'
- name: Install dependencies
run: |
pip install cfn-lint
# validate the template file
- name: Run cfn-lint
run: |
cfn-lint --template template.yaml --region us-east-1 --ignore-checks W
- uses: dtolnay/rust-toolchain@stable
with:
components: rustfmt, clippy
- name: start ssh agent for rust private dependencies
uses: webfactory/[email protected]
with:
ssh-private-key: ${{ secrets.SSH_PRIVATE_KEY }}
- name: run tests
run: |
cargo test --all -- --nocapture