clixon/.github/workflows/ci.yml
Workflow config file is invalid. Please check your config file: yaml: unmarshal errors: line 34: mapping key "run" already defined at line 33 line 35: mapping key "run" already defined at line 33 line 35: mapping key "run" already defined at line 34
2021-06-16 14:19:05 +02:00

39 lines
No EOL
1.2 KiB
YAML

name: Clixon CI
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: install cligen
run: (git clone https://github.com/clicon/cligen.git && cd cligen && ./configure && make && sudo make install)
- name: install libevent
run: sudo apt install -y libevent-dev libssl-dev
- name: install libevhtp
run: (git clone https://github.com/clicon/clixon-libevhtp.git && cd clixon-libevhtp && ./configure && make && sudo make install)
- name: clixon and www-data users
run: sudo useradd -M -U clicon && sudo usermod -a -G clicon www-data
- name: configure
run: ./configure --with-restconf=native
- name: make
run: make
- name: make install
run: sudo make install
- name: ldconfig
run: sudo ldconfig
- name: prepare test
run: echo "#!/usr/bin/env bash" > test/site.sh
run: echo "IPv6=true" >> test/site.sh
run: echo "SKIPLIST=\"test_api.sh test_client.sh test_c++.sh test_install.sh test_privileges.sh\"" >> test/site.sh
- name: test
run: (cd test; ./all.sh)
# - name: make test # this is docker test
# run: make test