diff --git a/.github/workflows/auto-tag.yml b/.github/workflows/auto-tag.yml new file mode 100644 index 0000000..33446ca --- /dev/null +++ b/.github/workflows/auto-tag.yml @@ -0,0 +1,12 @@ +name: Auto-tag +on: + push: + tags: + - '*.*.*' +jobs: + auto-tag: + name: Auto-tag + runs-on: ubuntu-latest + steps: + - name: Auto-tag + uses: silverstripe/gha-auto-tag@main diff --git a/README.md b/README.md index 943058c..50d067d 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ # GitHub Action - Run tests Run Silverstripe CI matrix tests -See [gha-ci](https://github.com/silverstripe/gha-ci) +Only intended to be used within [gha-ci](https://github.com/silverstripe/gha-ci) diff --git a/action.yml b/action.yml index c17a636..f96e4a6 100644 --- a/action.yml +++ b/action.yml @@ -5,9 +5,6 @@ inputs: endtoend: type: boolean default: false - # if endtoend_suite is blank or "root" it will run suites defined in root behat.yml - # passing this input is intended for extra_jobs running non-root suites - # e.g. running "asset-admin" behat from silverstripe-installer endtoend_suite: type: string required: false @@ -73,7 +70,7 @@ runs: FAIL_ON_WARNING='--fail-on-warning' fi echo "Running PHPUnit with options: $FAIL_ON_WARNING" - if [ "$PHPUNIT_SUITE" == "all" ]; then + if [ "$PHPUNIT_SUITE" == "all" ] || [ "$PHPUNIT_SUITE" == "" ]; then vendor/bin/phpunit --verbose --colors=always $FAIL_ON_WARNING else vendor/bin/phpunit --verbose --colors=always --testsuite "$PHPUNIT_SUITE" $FAIL_ON_WARNING @@ -145,7 +142,7 @@ runs: rm __behat_headless.yml # start chromedriver as a background process nohup sh -c "chromedriver" > /dev/null 2>&1 & - if [ "$ENDTOEND_SUITE" != "root" ]; then + if [ "$ENDTOEND_SUITE" != "root" ] && [ "$ENDTOEND_SUITE" != "" ]; then vendor/bin/behat --colors --strict --config __behat.yml "$ENDTOEND_SUITE" else vendor/bin/behat --colors --strict --config __behat.yml