Update runtests.yml

This commit is contained in:
Oliver Gorwits
2021-08-17 12:20:11 +01:00
committed by GitHub
parent 2ff3021eae
commit d0609781e8

View File

@@ -23,23 +23,21 @@ jobs:
id: get_tag id: get_tag
run: echo ::set-output name=TAGVALUE::${GITHUB_REF#refs/heads/} run: echo ::set-output name=TAGVALUE::${GITHUB_REF#refs/heads/}
- name: Install packages - name: Install packages
run: apk add jq openssh xz tmux bash curl sudo gcc make run: apk add perl-dev musl-dev jq openssh xz tmux bash curl sudo gcc make
- name: Install fake apt-get - name: Install fake apt-get
run: echo 'if [ "$1" == "update" ]; then exec apk update; else exec apk add openssh xz; fi' > /usr/local/bin/apt-get && chmod +x /usr/local/bin/apt-get run: echo 'if [ "$1" == "update" ]; then exec apk update; else exec apk add openssh xz; fi' > /usr/local/bin/apt-get && chmod +x /usr/local/bin/apt-get
# - name: Add localhost
# run: echo "127.0.0.1 localhost" >> /etc/hosts
- name: Check out latest code - name: Check out latest code
uses: actions/checkout@v1 uses: actions/checkout@v1
- name: Fix owner of checkout - name: Fix owner of checkout
run: chown -R netdisco:netdisco /github/workspace/netdisco/snmp-info run: chown -R netdisco:netdisco /github/workspace/snmp-info/snmp-info
# - name: Install Perl deps - name: Install Perl deps
# run: sudo -u netdisco /home/netdisco/bin/localenv cpanm --notest Env::Path Test::Compile run: sudo -u netdisco /home/netdisco/bin/localenv cpanm --notest Hook::LexWrap Test::Class::Most Test::Distribution Test::MockObject::Extends PPI Class::ISA Module::Info File::Slurp Test::Perl::Critic Test::Spelling
- name: Run Tests - name: Run Tests
id: build_and_run_tests id: build_and_run_tests
run: | run: |
sudo -u netdisco /home/netdisco/bin/localenv perl ./Build.PL sudo -u netdisco /home/netdisco/bin/localenv perl ./Build.PL
sudo -u netdisco /home/netdisco/bin/localenv ./Build test --test_files t/ --test_files xt/ sudo -u netdisco /home/netdisco/bin/localenv ./Build test --test_files t/ --test_files xt/
working-directory: /github/workspace/netdisco/snmp-info working-directory: /github/workspace/snmp-info/snmp-info
continue-on-error: true continue-on-error: true
- name: IRC failure notification - name: IRC failure notification
uses: Gottox/irc-message-action@v2 uses: Gottox/irc-message-action@v2