From deab4fb6f10c8bc8c2610659ff49a22582196dc8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Thomas=20M=C3=BCller?= Date: Fri, 18 Aug 2023 19:52:23 +0200 Subject: [PATCH] update pipelines --- .github/workflows/cleanup-caches.yml | 6 +++--- .github/workflows/codeql.yml | 20 ++++++++++---------- .github/workflows/continuous-integration.yml | 4 ++-- .github/workflows/labels.yml | 8 ++++---- .github/workflows/lock-closed-issues.yml | 6 +++--- .github/workflows/reactions.yml | 6 +++--- .github/workflows/release-drafter.yml | 4 ++-- 7 files changed, 27 insertions(+), 27 deletions(-) diff --git a/.github/workflows/cleanup-caches.yml b/.github/workflows/cleanup-caches.yml index ff7c97f..928254c 100644 --- a/.github/workflows/cleanup-caches.yml +++ b/.github/workflows/cleanup-caches.yml @@ -1,4 +1,4 @@ -name: cleanup caches by a branch +name: "Cleanup caches by a branch" on: pull_request: types: @@ -7,7 +7,7 @@ on: jobs: cleanup: - runs-on: ubuntu-latest + runs-on: "ubuntu-20.04" steps: - name: "Checkout" uses: "actions/checkout@v3" @@ -36,4 +36,4 @@ jobs: done echo "Done" env: - GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} + GH_TOKEN: "${{ secrets.GITHUB_TOKEN }}" diff --git a/.github/workflows/codeql.yml b/.github/workflows/codeql.yml index 8288794..c4b4c97 100644 --- a/.github/workflows/codeql.yml +++ b/.github/workflows/codeql.yml @@ -24,8 +24,8 @@ on: jobs: analyze: - name: Analyze - runs-on: ubuntu-latest + name: "Analyze" + runs-on: "ubuntu-22.04" permissions: actions: read contents: read @@ -35,7 +35,7 @@ jobs: fail-fast: false matrix: language: - - 'javascript' + - "javascript" # CodeQL supports [ 'cpp', 'csharp', 'go', 'java', 'javascript', 'python', 'ruby' ] # Use only 'java' to analyze code written in Java, Kotlin or both # Use only 'javascript' to analyze code written in JavaScript, TypeScript or both @@ -51,10 +51,10 @@ jobs: persist-credentials: false # Initializes the CodeQL tools for scanning. - - name: Initialize CodeQL - uses: github/codeql-action/init@v2 + - name: "Initialize CodeQL" + uses: "github/codeql-action/init@v2" with: - languages: ${{ matrix.language }} + languages: "${{ matrix.language }}" # If you wish to specify custom queries, you can do so here or in a config file. # By default, queries listed here will override any specified in a config file. # Prefix the list here with "+" to use these queries and those in the config file. @@ -64,8 +64,8 @@ jobs: # Autobuild attempts to build any compiled languages (C/C++, C#, Go, or Java). # If this step fails, then you should remove it and run the build manually (see below) - - name: Autobuild - uses: github/codeql-action/autobuild@v2 + - name: "Autobuild" + uses: "github/codeql-action/autobuild@v2" # ℹī¸ Command-line programs to run using the OS shell. # 📚 See https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#jobsjob_idstepsrun @@ -77,7 +77,7 @@ jobs: # echo "Run, Build Application using script" # ./location_of_script_within_repo/buildscript.sh - - name: Perform CodeQL Analysis - uses: github/codeql-action/analyze@v2 + - name: "Perform CodeQL Analysis" + uses: "github/codeql-action/analyze@v2" with: category: "/language:${{matrix.language}}" diff --git a/.github/workflows/continuous-integration.yml b/.github/workflows/continuous-integration.yml index 96eaaa4..dbaf1cf 100644 --- a/.github/workflows/continuous-integration.yml +++ b/.github/workflows/continuous-integration.yml @@ -135,7 +135,7 @@ jobs: composer-options: "--optimize-autoloader --prefer-dist --prefer-stable -v" - name: "Run unit tests with phpunit/phpunit" - run: "vendor/bin/phpunit -c phpunit.xml --no-coverage" + run: "vendor/bin/phpunit -c phpunit.xml --no-coverage --display-warnings" code-coverage: name: "Code Coverage with PHPUnit" @@ -192,7 +192,7 @@ jobs: run: "mkdir -p .build/coverage" - name: "Collect code coverage with Xdebug and phpunit/phpunit" - run: "vendor/bin/phpunit -c phpunit.xml --coverage-clover=.build/coverage/clover.xml --coverage-text --coverage-xml=.build/coverage/coverage-xml --log-junit=.build/coverage/phpunit.junit.xml" + run: "vendor/bin/phpunit -c phpunit.xml --coverage-clover=.build/coverage/clover.xml --coverage-text --coverage-xml=.build/coverage/coverage-xml --log-junit=.build/coverage/phpunit.junit.xml --display-warnings" - name: "Upload coverage to Codecov" uses: "codecov/codecov-action@v3.1.4" diff --git a/.github/workflows/labels.yml b/.github/workflows/labels.yml index 5ba35c1..bbce963 100644 --- a/.github/workflows/labels.yml +++ b/.github/workflows/labels.yml @@ -20,7 +20,7 @@ jobs: permissions: issues: write - runs-on: ubuntu-latest + runs-on: "ubuntu-22.04" steps: - name: "Checkout" @@ -33,7 +33,7 @@ jobs: - uses: "micnncim/action-label-syncer@v1.3.0" env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - GITHUB_REPOSITORY: ${{ github.repository }} + GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}" + GITHUB_REPOSITORY: "${{ github.repository }}" with: - manifest: .github/labels.yml + manifest: ".github/labels.yml" diff --git a/.github/workflows/lock-closed-issues.yml b/.github/workflows/lock-closed-issues.yml index 017bf7c..baef386 100644 --- a/.github/workflows/lock-closed-issues.yml +++ b/.github/workflows/lock-closed-issues.yml @@ -7,8 +7,8 @@ on: jobs: lock: - runs-on: ubuntu-latest + runs-on: "ubuntu-22.04" steps: - - uses: Dunning-Kruger/lock-issues@v1.1 + - uses: "Dunning-Kruger/lock-issues@v1.1" with: - repo-token: ${{ secrets.GITHUB_TOKEN }} + repo-token: "${{ secrets.GITHUB_TOKEN }}" diff --git a/.github/workflows/reactions.yml b/.github/workflows/reactions.yml index f86d186..4085517 100644 --- a/.github/workflows/reactions.yml +++ b/.github/workflows/reactions.yml @@ -19,11 +19,11 @@ permissions: jobs: action: - runs-on: ubuntu-latest + runs-on: "ubuntu-22.04" steps: - - uses: dessant/reaction-comments@v3 + - uses: "dessant/reaction-comments@v3" with: - github-token: ${{ secrets.GITHUB_TOKEN }} + github-token: "${{ secrets.GITHUB_TOKEN }}" issue-comment: > :wave: @{comment-author}, would you like to leave a reaction instead? diff --git a/.github/workflows/release-drafter.yml b/.github/workflows/release-drafter.yml index d2fe7b4..ccdb8e2 100644 --- a/.github/workflows/release-drafter.yml +++ b/.github/workflows/release-drafter.yml @@ -29,11 +29,11 @@ jobs: # otherwise, read permission is required at least pull-requests: write - runs-on: "ubuntu-latest" + runs-on: "ubuntu-22.04" steps: # Drafts your next Release notes as Pull Requests are merged into "master" - name: "Release Drafter" uses: "release-drafter/release-drafter@v5.24.0" env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}"