1
0
Fork 0
mirror of https://github.com/NeoCloud/NeoNetwork synced 2024-11-26 04:00:40 +08:00

update workflows, add pr test

This commit is contained in:
JerryXiao 2020-05-01 17:45:30 +08:00
parent 1646352278
commit 20a1d99e4a
Signed by: Jerry
GPG key ID: 9D9CE43650FF2BAA
2 changed files with 34 additions and 1 deletions

View file

@ -25,7 +25,7 @@ jobs:
- name: Run roa script
shell: bash
run: |
maxlen4=29
maxlen4=30
maxlen6=64
mkdir -p roa_dir
python3 scripts/roa.py -m ${maxlen4} -M ${maxlen6} -o roa_dir/roa46_bird2.conf

33
.github/workflows/test-your-pr.yml vendored Normal file
View file

@ -0,0 +1,33 @@
# 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:
- uses: actions/checkout@master
- name: Install dependencies
shell: bash
run: |
sudo apt update -qq
sudo apt install -y python3 git openssh-client
- name: Run roa script
shell: bash
run: |
maxlen4=30
maxlen6=64
mkdir -p roa_dir
python3 scripts/roa.py -m ${maxlen4} -M ${maxlen6} -o roa_dir/roa46_bird2.conf
python3 scripts/roa.py -m ${maxlen4} -M ${maxlen6} -4 -o roa_dir/roa4_bird2.conf
python3 scripts/roa.py -m ${maxlen4} -M ${maxlen6} -6 -o roa_dir/roa6_bird2.conf
python3 scripts/roa.py -m ${maxlen4} -M ${maxlen6} -j -o roa_dir/roa46.json