Skip to content
This repository has been archived by the owner on Jun 19, 2020. It is now read-only.

Commit

Permalink
(FACT-2569) changed ruby setup
Browse files Browse the repository at this point in the history
  • Loading branch information
Andrei Filipovici committed Apr 30, 2020
1 parent 873704e commit 51c8778
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 7 deletions.
6 changes: 2 additions & 4 deletions .github/actions/presuite.sh
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
#!/bin/sh -x

export DEBIAN_DISABLE_RUBYGEMS_INTEGRATION=no_wornings
export DENABLE_PATH_CHECK=0
export PATH=/opt/puppetlabs/puppet/bin/:/opt/puppetlabs/bin:$PATH
cwd=$(pwd)

Expand Down Expand Up @@ -38,6 +37,5 @@ gem install -f facter-*.gem

printf '\nBeaker tests\n\n'
cd $cwd/$FACTER_3_ROOT/acceptance

beaker exec tests/external_facts/external_fact_stderr_messages_output_to_stderr.rb --test-tag-exclude=server,facter_3 --test-tag-or=risk:high,audit:high
echo $PATH
beaker exec tests/options/config_file/load_from_ruby.rb --test-tag-exclude=server,facter_3 --test-tag-or=risk:high,audit:high 2>&1 | tee results.txt
sed -n '/Failed Tests Cases:/,/Skipped Tests Cases:/p' results.txt | grep 'Test Case' | awk {'print $3'}
11 changes: 8 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ jobs:
uses: actions/checkout@v2
with:
repository: puppetlabs/facter
ref: master
ref: run_tests_on_ng
path: facter_3

- name: Clone Mihai's beaker fork
Expand All @@ -34,10 +34,15 @@ jobs:
path: beaker

- name: Install Ruby 2.6
uses: actions/setup-ruby@v1
uses: ruby/setup-ruby@v1
with:
ruby-version: '2.6'

- name: Run acceptance tests
run: sudo -E bash -c facter_4/.github/actions/presuite.sh
run: |
sudo chmod a+rwx /home/runner
# sudo -E bash -c facter_4/.github/actions/presuite.sh
# sudo chmod a+rwx -R /usr/share

- name: Setup tmate session
uses: mxschmitt/action-tmate@v2

0 comments on commit 51c8778

Please sign in to comment.