From 467e934eaf04c8be28715cca54de9a295ecaf302 Mon Sep 17 00:00:00 2001 From: Aria Li Date: Thu, 10 Oct 2024 13:55:00 -0700 Subject: [PATCH] Testing --- .github/workflows/acceptance_tests.yml | 67 ------------------------ .github/workflows/integration_tests.yaml | 4 -- .github/workflows/unit_tests.yaml | 56 -------------------- 3 files changed, 127 deletions(-) delete mode 100644 .github/workflows/acceptance_tests.yml delete mode 100644 .github/workflows/unit_tests.yaml diff --git a/.github/workflows/acceptance_tests.yml b/.github/workflows/acceptance_tests.yml deleted file mode 100644 index cc321f8f28..0000000000 --- a/.github/workflows/acceptance_tests.yml +++ /dev/null @@ -1,67 +0,0 @@ ---- -name: Acceptance tests - -on: - push: - branches: - - main - pull_request: - branches: - - main - -jobs: - acceptance_tests: - name: Platform - strategy: - matrix: - os: [ windows-2019, ubuntu-20.04, macos-12 ] - runs-on: ${{ matrix.os }} - env: - BEAKER_debug: true - FACTER_ROOT: facter - SHA: latest - RELEASE_STREAM: puppet7 - - steps: - - name: Checkout current PR - uses: actions/checkout@v4 - with: - path: facter - - - name: Install Ruby 2.7 - uses: ruby/setup-ruby@v1 - with: - ruby-version: '2.7' - rubygems: '3.3.26' - - - name: Fix common Linux and macOS permissions - if: runner.os != 'Windows' - run: sudo chmod a-w /opt - - - name: Fix Linux permissions - if: runner.os == 'Linux' - run: | - sudo chmod a-w /home/runner /usr/share && - sudo chmod -R a-w /home/runner/.config /home/linuxbrew - - - name: Install dhclient for Linux - if: runner.os == 'Linux' - run: | - sudo apt install dhcpcd5 - sudo dhclient - - # IPv6 is missing on the GitHub macOS image and we need it for the networking facts tests - # https://github.com/actions/runner-images/issues/668 - - name: Add IPv6 on macOS - if: runner.os == 'macOS' - run: | - primary_interface=`route -n get default | awk '/interface: */{print $NF}'` - sudo ifconfig $primary_interface inet6 add ::1/64 - - - name: Run acceptance tests on Linux-like platform - if: runner.os != 'Windows' - run: sudo -E "PATH=$PATH" ruby $FACTER_ROOT/.github/actions/presuite.rb ${{ matrix.os }} - - - name: Run acceptance tests on Windows-like platform - if: runner.os == 'Windows' - run: ruby $Env:FACTER_ROOT/.github/actions/presuite.rb ${{ matrix.os }} diff --git a/.github/workflows/integration_tests.yaml b/.github/workflows/integration_tests.yaml index 7982b53652..8778e96216 100644 --- a/.github/workflows/integration_tests.yaml +++ b/.github/workflows/integration_tests.yaml @@ -18,11 +18,7 @@ jobs: strategy: matrix: cfg: - - {os: ubuntu-latest, ruby: '2.7'} - - {os: ubuntu-22.04, ruby: '3.2'} # with openssl 3 - {os: ubuntu-22.04, ruby: 'jruby-9.3.14.0'} - - {os: windows-2019, ruby: '2.7'} - - {os: windows-2019, ruby: '3.2'} # with openssl 3 runs-on: ${{ matrix.cfg.os }} env: BUNDLE_SET: 'with integration' diff --git a/.github/workflows/unit_tests.yaml b/.github/workflows/unit_tests.yaml deleted file mode 100644 index cd0ee2bc5f..0000000000 --- a/.github/workflows/unit_tests.yaml +++ /dev/null @@ -1,56 +0,0 @@ ---- -name: Unit tests - -on: - push: - branches: - - main - pull_request: - branches: - - main - -env: - CI: true - -jobs: - linux_unit_tests: - name: Ruby version - strategy: - matrix: - ruby: - - '2.5' - - '2.7' - - '3.0' - - '3.2' - - 'jruby-9.3.14.0' - - 'jruby-9.4.8.0' - runs-on: ubuntu-20.04 - steps: - - name: Checkout current PR - uses: actions/checkout@v4 - - - name: Rspec checks - uses: ruby/setup-ruby@v1 - with: - ruby-version: ${{ matrix.ruby }} - bundler-cache: true - - run: bundle exec rake spec_random - - windows_unit_tests: - name: Windows tests with Ruby ${{ matrix.ruby }} - strategy: - matrix: - ruby: - - '2.7' - - '3.2' - runs-on: windows-2019 - steps: - - name: Checkout current PR - uses: actions/checkout@v4 - - - name: Rspec checks - uses: ruby/setup-ruby@v1 - with: - ruby-version: ${{ matrix.ruby }} - bundler-cache: true - - run: bundle exec rake spec_random