From d0609781e879e3f73298f836ae4405fb98b66680 Mon Sep 17 00:00:00 2001 From: Oliver Gorwits Date: Tue, 17 Aug 2021 12:20:11 +0100 Subject: [PATCH] Update runtests.yml --- .github/workflows/runtests.yml | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/.github/workflows/runtests.yml b/.github/workflows/runtests.yml index 9bab5ecd..9f9b135c 100644 --- a/.github/workflows/runtests.yml +++ b/.github/workflows/runtests.yml @@ -23,23 +23,21 @@ jobs: id: get_tag run: echo ::set-output name=TAGVALUE::${GITHUB_REF#refs/heads/} - 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 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 uses: actions/checkout@v1 - name: Fix owner of checkout - run: chown -R netdisco:netdisco /github/workspace/netdisco/snmp-info -# - name: Install Perl deps -# run: sudo -u netdisco /home/netdisco/bin/localenv cpanm --notest Env::Path Test::Compile + run: chown -R netdisco:netdisco /github/workspace/snmp-info/snmp-info + - name: Install Perl deps + 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 id: build_and_run_tests run: | 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/ - working-directory: /github/workspace/netdisco/snmp-info + working-directory: /github/workspace/snmp-info/snmp-info continue-on-error: true - name: IRC failure notification uses: Gottox/irc-message-action@v2