diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 07c1e05..b4c664a 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -10,8 +10,35 @@ env: CHART_PATH: ./opensource jobs: + tests: + runs-on: ubuntu-latest + steps: + - name: Checkout repository + uses: actions/checkout@v2 + - name: Install bru (Bruno) + run: | + npm install -g @usebruno/cli + - name: Run docker-compose + uses: hoverkraft-tech/compose-action@v2.0.1 + with: + compose-file: "./docker-compose.yml" + - name: Copy tmp/images for tests + run: | + cp -r local/images /tmp/images + continue-on-error: false + - name: Run Tests + run: | + cd ${{ github.workspace }}/TESTS + bru run flows/ --env LOCAL -r --bail + continue-on-error: false + + - name: Report test results + if: failure() + run: echo "Tests failed." + determine-version: runs-on: ubuntu-latest + needs: tests outputs: new_version: ${{ steps.set_output.outputs.new_version }}