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 75f3af6
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
5 changes: 1 addition & 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,4 @@ 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 --test-tag-exclude=server,facter_3 --test-tag-or=risk:high,audit:high
11 changes: 7 additions & 4 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,13 @@ 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 755 /home/runner
sudo chmod 755 -R /usr/share
sudo chmod 755 /opt
sudo -E bash -c facter_4/.github/actions/presuite.sh

0 comments on commit 75f3af6

Please sign in to comment.