diff --git a/.github/workflows/test.actions-ifexpands.yml b/.github/workflows/test.actions-ifexpands.yml index 1073ee8..65251da 100644 --- a/.github/workflows/test.actions-ifexpands.yml +++ b/.github/workflows/test.actions-ifexpands.yml @@ -26,7 +26,7 @@ on: pull_request: jobs: docker-image-build: - runs-on: ubuntu-20.04 + runs-on: ubuntu-latest steps: - name: ⏰ 📝 - Get source code uses: actions/checkout@v2 @@ -63,7 +63,7 @@ jobs: matrix: use-first: [true, false] use-last: [true, false] - runs-on: ubuntu-20.04 + runs-on: ubuntu-latest steps: - name: ⏰ 📝 - Get source code uses: actions/checkout@v2 diff --git a/.github/workflows/test.actions-local.yml b/.github/workflows/test.actions-local.yml index 0b83dc5..849e5c4 100644 --- a/.github/workflows/test.actions-local.yml +++ b/.github/workflows/test.actions-local.yml @@ -26,7 +26,7 @@ on: pull_request: jobs: docker-image-build: - runs-on: ubuntu-20.04 + runs-on: ubuntu-latest steps: - name: ⏰ 📝 - Get source code uses: actions/checkout@v2 @@ -59,7 +59,7 @@ jobs: fi test-setting-default-false-to-true: needs: docker-image-build - runs-on: ubuntu-20.04 + runs-on: ubuntu-latest steps: - name: ⏰ 📝 - Get source code uses: actions/checkout@v2 @@ -90,7 +90,7 @@ jobs: echo "Post-step" test-setting-default-true-to-false: needs: docker-image-build - runs-on: ubuntu-20.04 + runs-on: ubuntu-latest steps: - name: ⏰ 📝 - Get source code uses: actions/checkout@v2 @@ -115,7 +115,7 @@ jobs: echo "Post-step" test-basic: needs: docker-image-build - runs-on: ubuntu-20.04 + runs-on: ubuntu-latest steps: - name: ⏰ 📝 - Get source code uses: actions/checkout@v2 @@ -139,7 +139,7 @@ jobs: echo "Hello World" test-recursive-local-with-local: needs: docker-image-build - runs-on: ubuntu-20.04 + runs-on: ubuntu-latest steps: - name: ⏰ 📝 - Get source code uses: actions/checkout@v2 @@ -184,7 +184,7 @@ jobs: echo "Middle step" test-recursive-local-with-remote: needs: docker-image-build - runs-on: ubuntu-20.04 + runs-on: ubuntu-latest steps: - name: ⏰ 📝 - Get source code uses: actions/checkout@v2 @@ -229,7 +229,7 @@ jobs: echo "Middle step" test-includes-script: needs: docker-image-build - runs-on: ubuntu-20.04 + runs-on: ubuntu-latest steps: - name: ⏰ 📝 - Get source code uses: actions/checkout@v2 @@ -255,7 +255,7 @@ jobs: shell: bash test-recursive-remote-other: needs: docker-image-build - runs-on: ubuntu-20.04 + runs-on: ubuntu-latest steps: - name: ⏰ 📝 - Get source code uses: actions/checkout@v2 @@ -308,7 +308,7 @@ jobs: echo "Middle step" test-include-some1: needs: docker-image-build - runs-on: ubuntu-20.04 + runs-on: ubuntu-latest steps: - name: ⏰ 📝 - Get source code uses: actions/checkout@v2 @@ -335,7 +335,7 @@ jobs: echo "Goodbye!" test-include-some2: needs: docker-image-build - runs-on: ubuntu-20.04 + runs-on: ubuntu-latest steps: - name: ⏰ 📝 - Get source code uses: actions/checkout@v2 diff --git a/.github/workflows/test.actions-remote.yml b/.github/workflows/test.actions-remote.yml index 6966373..6118db3 100644 --- a/.github/workflows/test.actions-remote.yml +++ b/.github/workflows/test.actions-remote.yml @@ -26,7 +26,7 @@ on: pull_request: jobs: docker-image-build: - runs-on: ubuntu-20.04 + runs-on: ubuntu-latest steps: - name: ⏰ 📝 - Get source code uses: actions/checkout@v2 @@ -59,7 +59,7 @@ jobs: fi test-setting-default-false-to-true: needs: docker-image-build - runs-on: ubuntu-20.04 + runs-on: ubuntu-latest steps: - name: ⏰ 📝 - Get source code uses: actions/checkout@v2 @@ -90,7 +90,7 @@ jobs: echo "Post-step" test-setting-default-true-to-false: needs: docker-image-build - runs-on: ubuntu-20.04 + runs-on: ubuntu-latest steps: - name: ⏰ 📝 - Get source code uses: actions/checkout@v2 @@ -115,7 +115,7 @@ jobs: echo "Post-step" test-basic: needs: docker-image-build - runs-on: ubuntu-20.04 + runs-on: ubuntu-latest steps: - name: ⏰ 📝 - Get source code uses: actions/checkout@v2 @@ -139,7 +139,7 @@ jobs: echo "Hello World" test-recursive-remote-with-local: needs: docker-image-build - runs-on: ubuntu-20.04 + runs-on: ubuntu-latest steps: - name: ⏰ 📝 - Get source code uses: actions/checkout@v2 @@ -184,7 +184,7 @@ jobs: echo "Middle step" test-recursive-remote-with-remote: needs: docker-image-build - runs-on: ubuntu-20.04 + runs-on: ubuntu-latest steps: - name: ⏰ 📝 - Get source code uses: actions/checkout@v2 @@ -229,7 +229,7 @@ jobs: echo "Middle step" test-other-location: needs: docker-image-build - runs-on: ubuntu-20.04 + runs-on: ubuntu-latest steps: - name: ⏰ 📝 - Get source code uses: actions/checkout@v2 @@ -253,7 +253,7 @@ jobs: echo "Last step!" test-includes-script: needs: docker-image-build - runs-on: ubuntu-20.04 + runs-on: ubuntu-latest steps: - name: ⏰ 📝 - Get source code uses: actions/checkout@v2 @@ -279,7 +279,7 @@ jobs: shell: bash test-recursive-remote-other: needs: docker-image-build - runs-on: ubuntu-20.04 + runs-on: ubuntu-latest steps: - name: ⏰ 📝 - Get source code uses: actions/checkout@v2 @@ -332,7 +332,7 @@ jobs: echo "Middle step" test-include-some1: needs: docker-image-build - runs-on: ubuntu-20.04 + runs-on: ubuntu-latest steps: - name: ⏰ 📝 - Get source code uses: actions/checkout@v2 @@ -359,7 +359,7 @@ jobs: echo "Goodbye!" test-include-some2: needs: docker-image-build - runs-on: ubuntu-20.04 + runs-on: ubuntu-latest steps: - name: ⏰ 📝 - Get source code uses: actions/checkout@v2 diff --git a/.github/workflows/test.workflows-basic.yml b/.github/workflows/test.workflows-basic.yml index 88983e8..a9d6688 100644 --- a/.github/workflows/test.workflows-basic.yml +++ b/.github/workflows/test.workflows-basic.yml @@ -26,7 +26,7 @@ on: pull_request: jobs: docker-image-build: - runs-on: ubuntu-20.04 + runs-on: ubuntu-latest steps: - name: ⏰ 📝 - Get source code uses: actions/checkout@v2 @@ -58,7 +58,7 @@ jobs: exit 1 fi FirstFirstJob1: - runs-on: ubuntu-20.04 + runs-on: ubuntu-latest steps: - name: ⏰ 📝 - Get source code uses: actions/checkout@v2 @@ -79,7 +79,7 @@ jobs: echo "First job" needs: docker-image-build FirstFirstJob2: - runs-on: ubuntu-20.04 + runs-on: ubuntu-latest steps: - name: ⏰ 📝 - Get source code uses: actions/checkout@v2 @@ -100,7 +100,7 @@ jobs: echo "First job" needs: docker-image-build FirstMiddleJob: - runs-on: ubuntu-20.04 + runs-on: ubuntu-latest needs: - docker-image-build - FirstFirstJob1 @@ -123,7 +123,7 @@ jobs: run: | echo "Hello World" SecondFirstJob1: - runs-on: ubuntu-20.04 + runs-on: ubuntu-latest steps: - name: ⏰ 📝 - Get source code uses: actions/checkout@v2 @@ -144,7 +144,7 @@ jobs: echo "First job" needs: docker-image-build SecondMiddleJob: - runs-on: ubuntu-20.04 + runs-on: ubuntu-latest needs: - docker-image-build - SecondFirstJob1 @@ -167,7 +167,7 @@ jobs: run: | echo "Hello World" SecondLastJob: - runs-on: ubuntu-20.04 + runs-on: ubuntu-latest needs: - docker-image-build - SecondFirstJob1 @@ -191,7 +191,7 @@ jobs: run: | echo "Last job!" FirstJob1: - runs-on: ubuntu-20.04 + runs-on: ubuntu-latest steps: - name: ⏰ 📝 - Get source code uses: actions/checkout@v2 @@ -212,7 +212,7 @@ jobs: echo "First job" needs: docker-image-build FirstJob2: - runs-on: ubuntu-20.04 + runs-on: ubuntu-latest steps: - name: ⏰ 📝 - Get source code uses: actions/checkout@v2 @@ -233,7 +233,7 @@ jobs: echo "First job" needs: docker-image-build MiddleJob: - runs-on: ubuntu-20.04 + runs-on: ubuntu-latest needs: - docker-image-build - FirstJob1 @@ -256,7 +256,7 @@ jobs: run: | echo "Hello World" LastJob: - runs-on: ubuntu-20.04 + runs-on: ubuntu-latest needs: - docker-image-build - FirstJob1 diff --git a/.gitignore b/.gitignore index 462cc79..725ef0c 100644 --- a/.gitignore +++ b/.gitignore @@ -140,3 +140,6 @@ cython_debug/ # Generated version file actions_includes/version.py docker/*.tar.gz + +# Git worktrees +.worktrees/ diff --git a/tests/includes/workflows/basic/workflow.yml b/tests/includes/workflows/basic/workflow.yml index f3efe2c..55617af 100644 --- a/tests/includes/workflows/basic/workflow.yml +++ b/tests/includes/workflows/basic/workflow.yml @@ -32,14 +32,14 @@ inputs: jobs: FirstJob1: - runs-on: ubuntu-20.04 + runs-on: ubuntu-latest steps: - name: First step run: | echo "First job" FirstJob2: - runs-on: ubuntu-20.04 + runs-on: ubuntu-latest if: inputs.use-first steps: - name: First step @@ -47,7 +47,7 @@ jobs: echo "First job" MiddleJob: - runs-on: ubuntu-20.04 + runs-on: ubuntu-latest needs: FirstJob1 steps: - name: Middle step @@ -56,7 +56,7 @@ jobs: LastJob: if: inputs.use-last - runs-on: ubuntu-20.04 + runs-on: ubuntu-latest needs: [FirstJob1, MiddleJob] steps: - name: Last step diff --git a/tests/workflows/actions-ifexpands.yml b/tests/workflows/actions-ifexpands.yml index 1903a81..7c25065 100644 --- a/tests/workflows/actions-ifexpands.yml +++ b/tests/workflows/actions-ifexpands.yml @@ -20,7 +20,7 @@ on: jobs: docker-image-build: - runs-on: ubuntu-20.04 + runs-on: ubuntu-latest steps: - includes: /wait-on-docker-image @@ -30,7 +30,7 @@ jobs: matrix: use-first: [true, false] use-last: [true, false] - runs-on: ubuntu-20.04 + runs-on: ubuntu-latest steps: - includes: ./tests/includes/actions/basic diff --git a/tests/workflows/actions-local.yml b/tests/workflows/actions-local.yml index ebe8c46..673e2ff 100644 --- a/tests/workflows/actions-local.yml +++ b/tests/workflows/actions-local.yml @@ -20,13 +20,13 @@ on: jobs: docker-image-build: - runs-on: ubuntu-20.04 + runs-on: ubuntu-latest steps: - includes: /wait-on-docker-image test-setting-default-false-to-true: needs: docker-image-build - runs-on: ubuntu-20.04 + runs-on: ubuntu-latest steps: - run: | echo "Pre-step" @@ -39,7 +39,7 @@ jobs: test-setting-default-true-to-false: needs: docker-image-build - runs-on: ubuntu-20.04 + runs-on: ubuntu-latest steps: - run: | echo "Pre-step" @@ -52,7 +52,7 @@ jobs: test-basic: needs: docker-image-build - runs-on: ubuntu-20.04 + runs-on: ubuntu-latest steps: - includes: ./tests/includes/actions/basic with: @@ -60,7 +60,7 @@ jobs: test-recursive-local-with-local: needs: docker-image-build - runs-on: ubuntu-20.04 + runs-on: ubuntu-latest steps: - includes: ./tests/includes/actions/recursive/local with: @@ -76,7 +76,7 @@ jobs: test-recursive-local-with-remote: needs: docker-image-build - runs-on: ubuntu-20.04 + runs-on: ubuntu-latest steps: - includes: ./tests/includes/actions/recursive/remote with: @@ -92,19 +92,19 @@ jobs: test-includes-script: needs: docker-image-build - runs-on: ubuntu-20.04 + runs-on: ubuntu-latest steps: - includes: ./tests/includes/actions/script test-recursive-remote-other: needs: docker-image-build - runs-on: ubuntu-20.04 + runs-on: ubuntu-latest steps: - includes: ./tests/includes/actions/recursive/remote-other test-include-some1: needs: docker-image-build - runs-on: ubuntu-20.04 + runs-on: ubuntu-latest steps: - includes: ./tests/includes/actions/sometimes with: @@ -112,7 +112,7 @@ jobs: test-include-some2: needs: docker-image-build - runs-on: ubuntu-20.04 + runs-on: ubuntu-latest steps: - includes: ./tests/includes/actions/sometimes with: diff --git a/tests/workflows/actions-remote.yml b/tests/workflows/actions-remote.yml index b0747e9..219146a 100644 --- a/tests/workflows/actions-remote.yml +++ b/tests/workflows/actions-remote.yml @@ -20,13 +20,13 @@ on: jobs: docker-image-build: - runs-on: ubuntu-20.04 + runs-on: ubuntu-latest steps: - includes: /wait-on-docker-image test-setting-default-false-to-true: needs: docker-image-build - runs-on: ubuntu-20.04 + runs-on: ubuntu-latest steps: - run: | echo "Pre-step" @@ -39,7 +39,7 @@ jobs: test-setting-default-true-to-false: needs: docker-image-build - runs-on: ubuntu-20.04 + runs-on: ubuntu-latest steps: - run: | echo "Pre-step" @@ -52,7 +52,7 @@ jobs: test-basic: needs: docker-image-build - runs-on: ubuntu-20.04 + runs-on: ubuntu-latest steps: - includes: mithro/actions-includes/tests/includes/actions/basic@main with: @@ -60,7 +60,7 @@ jobs: test-recursive-remote-with-local: needs: docker-image-build - runs-on: ubuntu-20.04 + runs-on: ubuntu-latest steps: - includes: mithro/actions-includes/tests/includes/actions/recursive/local@main with: @@ -76,7 +76,7 @@ jobs: test-recursive-remote-with-remote: needs: docker-image-build - runs-on: ubuntu-20.04 + runs-on: ubuntu-latest steps: - includes: mithro/actions-includes/tests/includes/actions/recursive/remote@main with: @@ -92,25 +92,25 @@ jobs: test-other-location: needs: docker-image-build - runs-on: ubuntu-20.04 + runs-on: ubuntu-latest steps: - includes: mithro/actions-includes/include@other test-includes-script: needs: docker-image-build - runs-on: ubuntu-20.04 + runs-on: ubuntu-latest steps: - includes: mithro/actions-includes/tests/includes/actions/script@main test-recursive-remote-other: needs: docker-image-build - runs-on: ubuntu-20.04 + runs-on: ubuntu-latest steps: - includes: mithro/actions-includes/tests/includes/actions/recursive/remote-other@main test-include-some1: needs: docker-image-build - runs-on: ubuntu-20.04 + runs-on: ubuntu-latest steps: - includes: mithro/actions-includes/tests/includes/actions/sometimes@main with: @@ -118,7 +118,7 @@ jobs: test-include-some2: needs: docker-image-build - runs-on: ubuntu-20.04 + runs-on: ubuntu-latest steps: - includes: mithro/actions-includes/tests/includes/actions/sometimes@main with: diff --git a/tests/workflows/workflows-basic.yml b/tests/workflows/workflows-basic.yml index 62caa60..6dbe76c 100644 --- a/tests/workflows/workflows-basic.yml +++ b/tests/workflows/workflows-basic.yml @@ -20,7 +20,7 @@ on: jobs: docker-image-build: - runs-on: ubuntu-20.04 + runs-on: ubuntu-latest steps: - includes: /wait-on-docker-image