-
Notifications
You must be signed in to change notification settings - Fork 125
26 lines (22 loc) · 974 Bytes
/
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
name: test
on: [push, pull_request]
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- name: shell_test
run: |
wget "https://github.com/koalaman/shellcheck/releases/download/stable/shellcheck-stable.linux.x86_64.tar.xz" && \
tar --xz -xvf "shellcheck-stable.linux.x86_64.tar.xz" && \
shellcheck() { "shellcheck-stable/shellcheck" "$@"; } && \
shellcheck --version && \
/bin/bash --version && /bin/bash -n bin/poseidon && shellcheck -x -e SC2016 -e SC2119 -e SC2129 -e SC2001 -e SC2038 -e SC2044 bin/poseidon
- name: e2e_test
run: |
export DEBIAN_FRONTEND=noninteractive && \
echo 'debconf debconf/frontend select Noninteractive' | sudo debconf-set-selections
sudo apt-get update && sudo apt-get install -y libev-dev tshark wget jq tcpreplay tcpdump
docker system prune -a -f --volumes && ./tests/test_e2e.sh