1
0
Fork 0
mirror of https://github.com/NeoCloud/NeoNetwork synced 2024-11-22 23:20:41 +08:00
NeoNetwork/.github/workflows/test-your-pr.yml

51 lines
1.8 KiB
YAML
Raw Normal View History

2020-05-01 17:45:30 +08:00
# This is a basic workflow to help you get started with Actions
name: Test Your PR
on:
pull_request:
branches:
- master
jobs:
build:
name: Generate ROA
runs-on: ubuntu-latest
steps:
2020-05-23 19:00:02 +08:00
- uses: actions/checkout@master
with:
ref: ${{ github.event.pull_request.head.sha }}
2020-05-01 17:45:30 +08:00
2020-05-23 19:00:02 +08:00
- name: Install dependencies
shell: bash
run: |
sudo apt update -qq
sudo apt install -y python3 git openssh-client
sudo apt install -y curl
curl -L https://github.com/pyenv/pyenv-installer/raw/master/bin/pyenv-installer | bash
export PATH="$HOME/.pyenv/bin:$PATH"
eval "$(pyenv init -)"
eval "$(pyenv virtualenv-init -)"
pyenv install 3.8.2
pyenv shell 3.8.2
2020-05-24 22:04:25 +08:00
pip install toml tabulate
2020-05-01 17:45:30 +08:00
2020-05-23 19:00:02 +08:00
- name: Run roa script
shell: bash
run: |
export PATH="$HOME/.pyenv/bin:$PATH"
eval "$(pyenv init -)"
eval "$(pyenv virtualenv-init -)"
pyenv shell 3.8.2
maxlen4=29
maxlen6=64
mkdir -p roa_dir
2020-05-23 19:42:52 +08:00
pyenv exec python3 scripts/roa.py -m ${maxlen4} -M ${maxlen6} -o roa_dir/roa46_bird2.conf
pyenv exec python3 scripts/roa.py -m ${maxlen4} -M ${maxlen6} -4 -o roa_dir/roa4_bird2.conf
pyenv exec python3 scripts/roa.py -m ${maxlen4} -M ${maxlen6} -6 -o roa_dir/roa6_bird2.conf
pyenv exec python3 scripts/roa.py -m ${maxlen4} -M ${maxlen6} -j -o roa_dir/roa46.json
pyenv exec python3 scripts/roa.py -m ${maxlen4} -M ${maxlen6} -e -o roa_dir/neonetwork.json
pyenv exec python3 scripts/roa.py -m ${maxlen4} -M ${maxlen6} -r -o roa_dir/rfc8416.json
pyenv exec python3 scripts/roa.py --summary --output roa_dir/README.txt