diff --git a/.github/workflows/ubuntu16_pr.yaml b/.github/workflows/ubuntu16_pr.yaml index 3afc00e..832ee7c 100644 --- a/.github/workflows/ubuntu16_pr.yaml +++ b/.github/workflows/ubuntu16_pr.yaml @@ -1,37 +1,37 @@ -name: "ubuntu1604" +name: "Test on Ubuntu 16.04" on: [push, pull_request] jobs: LitmusAcceptance: runs-on: ubuntu-16.04 steps: - uses: actions/checkout@v1 - name: Set up Ruby 2.6 uses: actions/setup-ruby@v1 with: ruby-version: 2.6 - name: Prepare inventory file run: | cat <> inventory.yaml --- version: 2 groups: - name: local targets: - uri: litmus_localhost config: transport: local - name: ssh_nodes targets: [] - name: winrm_nodes targets: [] EOF - name: Install gems and puppet agent run: | bundle install sudo -u root env "PATH=$PATH" bundle exec rake 'litmus:install_agent' - name: Install module run: bundle exec rake 'litmus:install_module' - name: Run acceptance tests run: sudo -u root env "PATH=$PATH" bundle exec rake 'litmus:acceptance:localhost' diff --git a/.github/workflows/ubuntu18_pr.yaml b/.github/workflows/ubuntu18_pr.yaml index c10ebdf..4057fc1 100644 --- a/.github/workflows/ubuntu18_pr.yaml +++ b/.github/workflows/ubuntu18_pr.yaml @@ -1,37 +1,37 @@ -name: "ubuntu1804" +name: "Test on Ubuntu 18.04" on: [push, pull_request] jobs: LitmusAcceptance: runs-on: ubuntu-18.04 steps: - uses: actions/checkout@v1 - name: Set up Ruby 2.6 uses: actions/setup-ruby@v1 with: ruby-version: 2.6 - name: Prepare inventory file run: | cat <> inventory.yaml --- version: 2 groups: - name: local targets: - uri: litmus_localhost config: transport: local - name: ssh_nodes targets: [] - name: winrm_nodes targets: [] EOF - name: Install gems and puppet agent run: | bundle install sudo -u root env "PATH=$PATH" bundle exec rake 'litmus:install_agent' - name: Install module run: bundle exec rake 'litmus:install_module' - name: Run acceptance tests run: sudo -u root env "PATH=$PATH" bundle exec rake 'litmus:acceptance:localhost' diff --git a/.github/workflows/ubuntu16_pr.yaml b/.github/workflows/ubuntu20_pr.yaml similarity index 91% copy from .github/workflows/ubuntu16_pr.yaml copy to .github/workflows/ubuntu20_pr.yaml index 3afc00e..b1522bd 100644 --- a/.github/workflows/ubuntu16_pr.yaml +++ b/.github/workflows/ubuntu20_pr.yaml @@ -1,37 +1,37 @@ -name: "ubuntu1604" +name: "Test on Ubuntu 20.04" on: [push, pull_request] jobs: LitmusAcceptance: - runs-on: ubuntu-16.04 + runs-on: ubuntu-20.04 steps: - uses: actions/checkout@v1 - name: Set up Ruby 2.6 uses: actions/setup-ruby@v1 with: ruby-version: 2.6 - name: Prepare inventory file run: | cat <> inventory.yaml --- version: 2 groups: - name: local targets: - uri: litmus_localhost config: transport: local - name: ssh_nodes targets: [] - name: winrm_nodes targets: [] EOF - name: Install gems and puppet agent run: | bundle install sudo -u root env "PATH=$PATH" bundle exec rake 'litmus:install_agent' - name: Install module run: bundle exec rake 'litmus:install_module' - name: Run acceptance tests - run: sudo -u root env "PATH=$PATH" bundle exec rake 'litmus:acceptance:localhost' + run: sudo -u root env "PATH=$PATH" bundle exec rake 'litmus:acceptance:localhost'