-
Notifications
You must be signed in to change notification settings - Fork 2
60 lines (50 loc) · 1.43 KB
/
run-tests.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
---
name: Run DAS-CLI tests
on:
pull_request:
types:
- opened
- reopened
- edited
- synchronize
jobs:
build-das-cli:
runs-on: ubuntu-22.04
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Build Dockerfile
run: docker build -f .docker/Dockerfile.das-toolbox -t das-cli:latest .
- name: Build das-cli binary
run: docker run --rm -v "$(pwd)/dist/":/app/das/dist -e DAS_CLI_VERSION=0.1.0 das-cli:latest
- name: Upload das-cli artifact
uses: actions/upload-artifact@v4
with:
name: das-cli
path: dist/*
integration-tests:
runs-on: ubuntu-22.04
needs:
- build-das-cli
steps:
- name: Checkout
uses: actions/checkout@v4
with:
submodules: true
- name: Install requirements
run: |-
sudo apt -y update && sudo apt -y install make
cd /tmp
git clone --depth=1 --branch v1.11.0 https://github.com/bats-core/bats-core.git
cd bats-core
sudo ./install.sh /usr/local
cd -
- name: Download das-cli artifact
uses: actions/download-artifact@v4
with:
name: das-cli
path: packages
- name: Installing das-cli package
run: sudo apt -y install $(find . -name *.deb -type f | head -n 1)
- name: Runnign integration tests
run: make integration_tests