From b102bef9873951157b1d78f3e320d4c8fa20627b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jan=20Blizni=C4=8Denko?= <9571633+JanBliznicenko@users.noreply.github.com> Date: Fri, 28 Jan 2022 17:24:12 +0100 Subject: [PATCH] Update nightly.yml --- .github/workflows/nightly.yml | 70 +---------------------------------- 1 file changed, 2 insertions(+), 68 deletions(-) diff --git a/.github/workflows/nightly.yml b/.github/workflows/nightly.yml index 88ac717..7fb25ba 100644 --- a/.github/workflows/nightly.yml +++ b/.github/workflows/nightly.yml @@ -20,71 +20,5 @@ env: RUN_ID: ${{ github.run_id }} jobs: - - test-linux: - runs-on: ubuntu-latest - env: - PLATFORM: linux - name: 'Test Linux' - steps: - - name: Checkout repository - uses: actions/checkout@v2.3.4 - - name: Load SmalltalkCI environment - uses: hpi-swa/setup-smalltalkCI@1.2.1 - id: smalltalkci - with: - smalltalk-version: Pharo64-9.0 - - name: Prepare image and test - run: smalltalkci -s ${{ steps.smalltalkci.outputs.smalltalk-version }} - shell: bash - timeout-minutes: 10 - - test-win: - runs-on: windows-latest - env: - PLATFORM: win - name: 'Test Windows' - steps: - - name: Checkout repository - uses: actions/checkout@v2.3.4 - - name: Load SmalltalkCI environment - uses: hpi-swa/setup-smalltalkCI@1.2.1 - id: smalltalkci - with: - smalltalk-version: Pharo64-9.0 - - name: Prepare image and test - run: smalltalkci -s ${{ steps.smalltalkci.outputs.smalltalk-version }} - shell: bash - timeout-minutes: 15 - - create-dependent-matrix: - runs-on: ubuntu-latest - name: 'Find dependent repositories' - if: ${{ github.event_name == 'push' || contains(github.event.inputs.build-dependent || false, 'true') }} - outputs: - matrix: ${{ steps.set-matrix.outputs.matrix }} - steps: - - name: Checkout repository - uses: actions/checkout@v2.3.4 - - name: Check list of repositories exists - id: check-file - run: test -f ./.github/dependent-repositories.txt || exit 1 - - name: Create dependent build matrix - id: set-matrix - run: echo "::set-output name=matrix::`cat ./.github/dependent-repositories.txt | tr -d " \t\n\r"`" - - build-dependent: - needs: [test-linux, test-win, create-dependent-matrix] - runs-on: ubuntu-latest - name: 'Build dependent' - if: ${{ contains(needs.create-dependent-matrix.outputs.matrix, '/') }} - strategy: - matrix: ${{fromJson(needs.create-dependent-matrix.outputs.matrix)}} - steps: - - name: Start ${{ matrix.repository }} build - uses: benc-uk/workflow-dispatch@v1.1.0 - with: - workflow: Nightly - repo: ${{ matrix.repository }} - token: ${{ secrets.WORKFLOW_ACCESS_TOKEN }} - inputs: '{ "build-dependent": "${{ matrix.build-dependent }}" }' + test-and-run-dependent: + uses: OpenPonk/openponk/.github/workflows/nightly.yml@master