|
65 | 65 | - ruby: '2.7.1' |
66 | 66 | fluentd: '1.11.1' |
67 | 67 | runs-on: ${{ matrix.os }} |
68 | | - name: Gem test with Ruby ${{ matrix.ruby }} on ${{ matrix.os }} |
| 68 | + name: Gem with Ruby ${{ matrix.ruby }} on ${{ matrix.os }} |
69 | 69 | steps: |
70 | 70 | - uses: actions/checkout@v4 |
71 | 71 | - uses: ruby/setup-ruby@v1 |
|
88 | 88 | if: ${{ matrix.shell == 'cmd' }} |
89 | 89 | run: test/script/command-test.bat |
90 | 90 | shell: cmd |
| 91 | + |
| 92 | + gem-test-with-package: |
| 93 | + needs: build |
| 94 | + strategy: |
| 95 | + fail-fast: false |
| 96 | + matrix: |
| 97 | + test: |
| 98 | + - td-agent-v3.1.1.el7-test.bash |
| 99 | + - td-agent-v4.0.0.el8-test.bash |
| 100 | + - fluent-package-v5.0.1.el9-test.bash |
| 101 | + - td-agent-v3.1.1.xenial-test.bash |
| 102 | + - td-agent-v4.0.0.focal-test.bash |
| 103 | + - fluent-package-v5.0.1.jammy-test.bash |
| 104 | + include: |
| 105 | + - test: td-agent-v3.1.1.el7-test.bash |
| 106 | + vm: centos-7 |
| 107 | + - test: td-agent-v4.0.0.el8-test.bash |
| 108 | + vm: rockylinux-8 |
| 109 | + - test: fluent-package-v5.0.1.el9-test.bash |
| 110 | + vm: almalinux-9 |
| 111 | + - test: td-agent-v3.1.1.xenial-test.bash |
| 112 | + vm: ubuntu-xenial |
| 113 | + - test: td-agent-v4.0.0.focal-test.bash |
| 114 | + vm: ubuntu-focal |
| 115 | + - test: fluent-package-v5.0.1.jammy-test.bash |
| 116 | + vm: ubuntu-jammy |
| 117 | + runs-on: ubuntu-latest |
| 118 | + name: ${{ matrix.test }} |
| 119 | + steps: |
| 120 | + - uses: actions/checkout@v4 |
| 121 | + - uses: actions/download-artifact@v4 |
| 122 | + with: |
| 123 | + name: gem |
| 124 | + path: pkg |
| 125 | + - name: Set up VirtualBox |
| 126 | + run: | |
| 127 | + sudo apt update |
| 128 | + sudo apt install -y virtualbox |
| 129 | + - name: Set up Vagrant |
| 130 | + run: | |
| 131 | + wget -O - https://apt.releases.hashicorp.com/gpg | sudo gpg --dearmor -o /usr/share/keyrings/hashicorp-archive-keyring.gpg |
| 132 | + echo "deb [arch=$(dpkg --print-architecture) signed-by=/usr/share/keyrings/hashicorp-archive-keyring.gpg] https://apt.releases.hashicorp.com $(lsb_release -cs) main" | sudo tee /etc/apt/sources.list.d/hashicorp.list |
| 133 | + sudo apt update && sudo apt install -y vagrant |
| 134 | + vagrant --version |
| 135 | + vagrant status |
| 136 | + - name: Test |
| 137 | + run: | |
| 138 | + vagrant up ${{ matrix.vm }} |
| 139 | + vagrant ssh ${{ matrix.vm }} -- /vagrant/test/script/${{ matrix.test }} |
| 140 | +
|
| 141 | + gem-test-with-msi-package: |
| 142 | + needs: build |
| 143 | + strategy: |
| 144 | + fail-fast: false |
| 145 | + matrix: |
| 146 | + test: |
| 147 | + - td-agent-v3.1.1.msi-test.ps1 |
| 148 | + - td-agent-v4.0.0.msi-test.ps1 |
| 149 | + - fluent-package-v5.0.1.msi-test.ps1 |
| 150 | + include: |
| 151 | + - test: td-agent-v3.1.1.msi-test.ps1 |
| 152 | + os: windows-2019 |
| 153 | + - test: td-agent-v4.0.0.msi-test.ps1 |
| 154 | + os: windows-2019 |
| 155 | + - test: fluent-package-v5.0.1.msi-test.ps1 |
| 156 | + os: windows-latest |
| 157 | + runs-on: ${{ matrix.os }} |
| 158 | + name: ${{ matrix.test }} |
| 159 | + steps: |
| 160 | + - uses: actions/checkout@v4 |
| 161 | + - uses: actions/download-artifact@v4 |
| 162 | + with: |
| 163 | + name: gem |
| 164 | + path: pkg |
| 165 | + - name: Test |
| 166 | + run: test/script/${{ matrix.test }} |
0 commit comments