diff --git a/.github/dependabot.yml b/.github/dependabot.yml index 1069398..a068204 100644 --- a/.github/dependabot.yml +++ b/.github/dependabot.yml @@ -1,3 +1,4 @@ +--- version: 2 updates: - package-ecosystem: github-actions diff --git a/.github/workflows/github-actions.yml b/.github/workflows/github-actions.yml new file mode 100644 index 0000000..351016c --- /dev/null +++ b/.github/workflows/github-actions.yml @@ -0,0 +1,21 @@ +--- +on: pull_request +name: GitHub Actions + +# Detect if this action is already running, and cancel it. +# This most likely happened because a second push has been made to a branch. +concurrency: + group: ${{ github.repository_id }}-${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: true + +permissions: + contents: read + pull-requests: write + +jobs: + actionlint: + name: Actionlint + runs-on: ubuntu-24.04 + steps: + - uses: actions/checkout@v5 + - uses: reviewdog/action-actionlint@v1 diff --git a/.github/workflows/pull_request.yml b/.github/workflows/pull_request.yml index 647158e..198d401 100644 --- a/.github/workflows/pull_request.yml +++ b/.github/workflows/pull_request.yml @@ -1,3 +1,4 @@ +--- on: pull_request name: Check and lint permissions: @@ -6,7 +7,7 @@ permissions: jobs: php_version: name: Lookup PHP version - runs-on: ubuntu-latest + runs-on: ubuntu-24.04 outputs: php_version: ${{ env.php_version }} steps: @@ -16,7 +17,7 @@ jobs: review_codestyle: name: Codestyle - runs-on: ubuntu-latest + runs-on: ubuntu-24.04 needs: php_version steps: - uses: actions/checkout@v5 @@ -34,7 +35,7 @@ jobs: static_code_analysis: name: Static Code Analysis - runs-on: ubuntu-latest + runs-on: ubuntu-24.04 needs: php_version steps: - uses: actions/checkout@v5 @@ -57,7 +58,7 @@ jobs: unit_tests: name: PHPUnit tests - runs-on: ubuntu-latest + runs-on: ubuntu-24.04 needs: php_version steps: - uses: actions/checkout@v5 @@ -75,14 +76,14 @@ jobs: hadolint: name: Hadolint - runs-on: ubuntu-latest + runs-on: ubuntu-24.04 steps: - uses: actions/checkout@v5 - uses: hadolint/hadolint-action@v3.2.0 markdown_lint: name: Markdown lint - runs-on: ubuntu-latest + runs-on: ubuntu-24.04 steps: - uses: actions/checkout@v5 - name: Install problem matcher @@ -94,7 +95,7 @@ jobs: docker_build: name: Test Docker build - runs-on: ubuntu-latest + runs-on: ubuntu-24.04 steps: - uses: actions/checkout@v5 - name: Build docker image diff --git a/.github/workflows/yaml.yml b/.github/workflows/yaml.yml new file mode 100644 index 0000000..4931d9b --- /dev/null +++ b/.github/workflows/yaml.yml @@ -0,0 +1,24 @@ +--- +on: pull_request +name: YAML + +permissions: + contents: read + pull-requests: write + +# Detect if this action is already running, and cancel it. +# This most likely happened because a second push has been made to a branch. +concurrency: + group: ${{ github.repository_id }}-${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: true + +jobs: + yaml-cs-fixer: + name: Yamllint + runs-on: ubuntu-24.04 + steps: + - uses: actions/checkout@v5 + - name: Run Yamllint + uses: frenck/action-yamllint@v1.5.0 + with: + strict: true diff --git a/.yamllint.yml b/.yamllint.yml new file mode 100644 index 0000000..9199808 --- /dev/null +++ b/.yamllint.yml @@ -0,0 +1,13 @@ +--- + +extends: default + +ignore-from-file: + - .gitignore + +rules: + indentation: + spaces: 2 + line-length: disable + truthy: + check-keys: false diff --git a/action.yml b/action.yml index 9ffcb37..e093fef 100644 --- a/action.yml +++ b/action.yml @@ -1,3 +1,4 @@ +--- name: 'Sync Drupal security updates with JIRA' description: 'Check a Drupal site corresponding to the current repository for security updates and creates JIRA tickets accordingly.' author: 'reload' diff --git a/composer.lock b/composer.lock index edc781c..5f96359 100644 --- a/composer.lock +++ b/composer.lock @@ -4,7 +4,7 @@ "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies", "This file is @generated automatically" ], - "content-hash": "3483274cee913f02962b57a7b96f6977", + "content-hash": "f674f6c70efeabfa88269b2b655938cc", "packages": [ { "name": "azjezz/psl", diff --git a/grumphp.yml b/grumphp.yml index f22645b..5374570 100644 --- a/grumphp.yml +++ b/grumphp.yml @@ -1,8 +1,9 @@ +--- grumphp: - ascii: - failed: ~ - succeeded: ~ - tasks: - phpstan: [] - phpcs: [] - phpunit: [] + ascii: + failed: ~ + succeeded: ~ + tasks: + phpstan: [] + phpcs: [] + phpunit: []