Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ci examples: use !cancelled() instead of always() #251

Merged
merged 2 commits into from
Oct 21, 2023

changelog: Suggest switching from always() to !cancelled in GHA workf…

8407184
Select commit
Loading
Failed to load commit list.
Merged

ci examples: use !cancelled() instead of always() #251

changelog: Suggest switching from always() to !cancelled in GHA workf…
8407184
Select commit
Loading
Failed to load commit list.
This check has been archived and is scheduled for deletion. Learn more about checks retention
Travis CI / Travis CI - Pull Request succeeded Oct 20, 2023 in 27m 42s

Build Passed

The build passed, just like the previous build.

Details

This is a pull request build.

It is running a build against the merge commit, after merging #251 ci examples: use !cancelled() instead of always().
Any changes that have been made to the master branch before the build ran are also included.

Jobs and Stages

This build has five jobs, running in three sequential stages.

Stage 1: CI test (make validate)

This stage passed.

Job PHP ENV OS State
769.1 7.4 PGVER=13 Linux passed

Stage 2: Code coverage (coveralls)

This stage passed.

Job PHP ENV OS State
769.2 7.4 PGVER=13 Linux passed

Stage 3: Integration tests

This stage passed.

Job PHP ENV OS State
769.3 8.2 PGVER=13 Linux passed
769.4 8.2 PGVER=13 Linux passed
769.5 7.4 PGVER=13 Linux passed

Build Configuration

Build Option Setting
Language PHP
Operating System Linux (Focal)
Build Configuration
{
  "language": "php",
  "os": [
    "linux"
  ],
  "dist": "focal",
  "addons": {
    "postgresql": "13",
    "apt": {
      "packages": [
        "postgresql-13",
        "postgresql-client-13"
      ]
    }
  },
  "services": [
    "mysql",
    "docker"
  ],
  "cache": {
    "directories": [
      "$HOME/.composer/cache",
      "$HOME/.npm"
    ]
  },
  "env": [
    "global={:PGVER=>\"13\"}={:IGNORE_PATHS=>\"ignore\"}={:IGNORE_NAMES=>\"ignore_name.php\"}={:MUSTACHE_IGNORE_NAMES=>\"broken.mustache\"}={:DB=>\"pgsql\"}"
  ],
  "before_install": [
    "echo 'max_input_vars=5000' >> ~/.phpenv/versions/$(phpenv version-name)/etc/conf.d/travis.ini",
    "make init",
    "cp -R tests/Fixture/moodle-local_ci ../moodle-local_ci",
    "export PATH=\"$(cd bin; pwd):$(cd vendor/bin; pwd):$PATH\"",
    "export TRAVIS_BUILD_DIR=$(cd ../moodle-local_ci; pwd)",
    "if [ -n \"$DOCKER_USER\" ] && [ -n \"$DOCKER_TOKEN\" ]; then\n    echo \"$DOCKER_TOKEN\" | docker login -u \"$DOCKER_USER\" --password-stdin\n    echo \"Using authenticated connection (no pull limits)\"\nelse\n    echo \"Using unauthenticated docker (pull limits may apply). Setup DOCKER_USER and DOCKER_TOKEN if needed.\"\nfi\n"
  ],
  "install": [
    "moodle-plugin-ci install -vvv"
  ],
  "script": [
    "moodle-plugin-ci phplint",
    "moodle-plugin-ci phpcpd",
    "moodle-plugin-ci phpmd",
    "moodle-plugin-ci codechecker",
    "moodle-plugin-ci codefixer",
    "moodle-plugin-ci validate",
    "moodle-plugin-ci savepoints",
    "moodle-plugin-ci mustache",
    "moodle-plugin-ci grunt || [[ \"$MOODLE_BRANCH\" =~ MOODLE_3[0-9]+_STABLE ]]",
    "moodle-plugin-ci phpdoc",
    "moodle-plugin-ci phpunit --verbose --coverage-text --fail-on-warning",
    "moodle-plugin-ci behat --profile default",
    "moodle-plugin-ci behat --profile chrome"
  ],
  "jobs": {
    "include": [
      {
        "stage": "CI test (make validate)",
        "php": "7.4",
        "before_install": [
          "skip"
        ],
        "install": [
          "make init"
        ],
        "script": [
          "make validate"
        ]
      },
      {
        "stage": "Code coverage (coveralls)",
        "if": "repo = moodlehq/moodle-plugin-ci",
        "php": "7.4",
        "before_install": [
          "skip"
        ],
        "install": [
          "make init",
          "composer create-project -n --no-dev --prefer-dist php-coveralls/php-coveralls coveralls ^2"
        ],
        "script": [
          "make coverage-phpunit"
        ],
        "after_success": [
          "coveralls/bin/php-coveralls -v"
        ]
      },
      {
        "stage": "Integration tests",
        "if": "env(MOODLE_BRANCH) IS present"
      },
      {
        "php": "8.2",
        "env": [
          {
            "MOODLE_BRANCH": "master"
          }
        ]
      },
      {
        "php": "8.2",
        "env": [
          {
            "MOODLE_BRANCH": "MOODLE_402_STABLE"
          }
        ]
      },
      {
        "php": "7.4",
        "env": [
          {
            "MOODLE_BRANCH": "MOODLE_38_STABLE"
          }
        ]
      }
    ]
  }
}