diff --git a/.github/workflows/pr.yml b/.github/workflows/pr.yml index e2407bcc..920879f1 100644 --- a/.github/workflows/pr.yml +++ b/.github/workflows/pr.yml @@ -2,7 +2,7 @@ on: pull_request name: Build and Test jobs: - tests-integration: + tests-integration-img: strategy: matrix: go-version: [1.16.x] @@ -24,6 +24,25 @@ jobs: sudo chmod a+x "/usr/bin/img" - name: Tests with Img backend run: sudo -E env "PATH=$PATH" env "LUET_BACKEND=img" make test-integration + + tests-integration: + strategy: + matrix: + go-version: [1.16.x] + platform: [ubuntu-latest] + runs-on: ${{ matrix.platform }} + steps: + - name: Install Go + uses: actions/setup-go@v2 + with: + go-version: ${{ matrix.go-version }} + - name: Checkout code + uses: actions/checkout@v2 + - name: setup-docker + uses: docker-practice/actions-setup-docker@0.0.1 + - name: Install deps + run: | + sudo apt-get install -y upx && sudo -E env "PATH=$PATH" make deps - name: Tests run: sudo -E env "PATH=$PATH" make test-integration tests-unit: diff --git a/.github/workflows/push.yml b/.github/workflows/push.yml index 9bed33c5..3e23a640 100644 --- a/.github/workflows/push.yml +++ b/.github/workflows/push.yml @@ -4,8 +4,8 @@ concurrency: name: Build on push jobs: - tests-integration: - name: Integration tests + tests-integration-img: + name: Integration tests with img runs-on: ubuntu-latest steps: - name: Install Go @@ -30,6 +30,23 @@ jobs: sudo -E env "PATH=$PATH" \ env "LUET_BACKEND=img" \ make test-integration + tests-integration: + name: Integration tests + runs-on: ubuntu-latest + steps: + - name: Install Go + uses: actions/setup-go@v2 + with: + go-version: 1.16.x + - name: Checkout code + uses: actions/checkout@v2 + - name: setup-docker + uses: docker-practice/actions-setup-docker@0.0.1 + - name: Login to quay + run: echo ${{ secrets.DOCKER_TESTING_PASSWORD }} | sudo -E docker login -u ${{ secrets.DOCKER_TESTING_USERNAME }} --password-stdin quay.io + - name: Install deps + run: | + sudo apt-get install -y upx && sudo -E env "PATH=$PATH" make deps - name: Tests run: | sudo -E \ diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 9e42a269..a30ab142 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -7,7 +7,7 @@ concurrency: name: Test and Release on tag jobs: - tests-integration: + tests-integration-img: name: Integration tests runs-on: ubuntu-latest steps: @@ -33,6 +33,23 @@ jobs: sudo -E env "PATH=$PATH" \ env "LUET_BACKEND=img" \ make test-integration + tests-integration: + name: Integration tests + runs-on: ubuntu-latest + steps: + - name: Install Go + uses: actions/setup-go@v2 + with: + go-version: 1.16.x + - name: Checkout code + uses: actions/checkout@v2 + - name: setup-docker + uses: docker-practice/actions-setup-docker@0.0.1 + - name: Login to quay + run: echo ${{ secrets.DOCKER_TESTING_PASSWORD }} | sudo -E docker login -u ${{ secrets.DOCKER_TESTING_USERNAME }} --password-stdin quay.io + - name: Install deps + run: | + sudo apt-get install -y upx && sudo -E env "PATH=$PATH" make deps - name: Tests run: | sudo -E \ @@ -75,7 +92,7 @@ jobs: release: name: Release runs-on: ubuntu-latest - needs: [ "tests-integration","tests-unit" ] + needs: [ "tests-integration-img", "tests-integration","tests-unit" ] steps: - name: Install Go uses: actions/setup-go@v2