Update runtests.yml
This commit is contained in:
		
							
								
								
									
										12
									
								
								.github/workflows/runtests.yml
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										12
									
								
								.github/workflows/runtests.yml
									
									
									
									
										vendored
									
									
								
							| @@ -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 | ||||
|   | ||||
		Reference in New Issue
	
	Block a user