Skip to content

Commit

Permalink
Merge pull request #256 from mimmi20/updates
Browse files Browse the repository at this point in the history
update workflows
  • Loading branch information
mimmi20 authored Aug 14, 2023
2 parents 3ffa1ea + bc17803 commit 1a1b3d7
Show file tree
Hide file tree
Showing 9 changed files with 103 additions and 52 deletions.
40 changes: 20 additions & 20 deletions .github/labels.yml
Original file line number Diff line number Diff line change
@@ -1,65 +1,65 @@
---
# Default GitHub labels
- color: ee0701
- color: "ee0701"
name: "bug"
description: "Something isn't working"
- color: cccccc
- color: "cccccc"
name: "duplicate"
description: "This issue or pull request already exists"
- color: a2eeef
- color: "a2eeef"
name: "enhancement"
description: "New feature or request"
- color: 7057ff
- color: "7057ff"
name: "good first issue"
description: "Good for newcomers"
- color: 128a0c
- color: "128a0c"
name: "help wanted"
description: "Extra attention is needed"
- color: e6e6e6
- color: "e6e6e6"
name: "invalid"
description: "This doesn't seem right"
- color: cc317c
- color: "cc317c"
name: "question"
description: "Further information is requested"
- color: ffffff
- color: "ffffff"
name: "wontfix"
description: "This will not be worked on"

# other Labels to all mimmi20 repos
- color: 0025ff
- color: "0025ff"
name: "dependencies"
description: "Pull requests that update a dependency file"
- color: f9d0c4
- color: "f9d0c4"
name: "stale"
description: "no activity"
- color: b60205
- color: "b60205"
name: "bc break"
description: "BC Break"
- color: f4e99c
- color: "f4e99c"
name: "maintenance"
description: "Maintenance"
- color: fbca04
- color: "fbca04"
name: "wishlist"
description: ""
- color: d1260f
- color: "d1260f"
name: "security"
description: ""
- color: e6e6e6
- color: "e6e6e6"
name: "removed"
description: ""
- color: b60205
- color: "b60205"
name: "deprecated"
description: ""
- color: 0075ca
- color: "0075ca"
name: "documentation"
description: "Improvements or additions to documentation"
- color: 84175d
- color: "84175d"
name: "major"
description: "Major change"
- color: d86c28
- color: "d86c28"
name: "minor"
description: "Minor change"
- color: 0a9b47
- color: "0a9b47"
name: "patch"
description: "Patch"

Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/cleanup-caches.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: cleanup caches by a branch
name: "Cleanup caches by a branch"
on:
pull_request:
types:
Expand All @@ -7,7 +7,7 @@ on:

jobs:
cleanup:
runs-on: ubuntu-latest
runs-on: "ubuntu-20.04"
steps:
- name: "Checkout"
uses: "actions/checkout@v3"
Expand Down Expand Up @@ -36,4 +36,4 @@ jobs:
done
echo "Done"
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GH_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
20 changes: 10 additions & 10 deletions .github/workflows/codeql.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand All @@ -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.
Expand All @@ -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
Expand All @@ -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}}"
62 changes: 57 additions & 5 deletions .github/workflows/continuous-integration.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,19 +19,69 @@ jobs:

uses: "mimmi20/mimmi20/.github/workflows/ci.yml@main"
with:
extensions: "ctype, dom, iconv, mbstring, simplexml, tokenizer, xml, xmlwriter"
extensions: "curl, iconv, mbstring, intl, dom, simplexml, tokenizer, xml, xmlwriter"
ini-values: "opcache.enable=1, opcache.fast_shutdown=0, zend.assertions=1, assert.exception=On, intl.default_locale=de, intl.use_exceptions=1, zend.exception_ignore_args=0"
composer-options: "--optimize-autoloader --prefer-dist --prefer-stable -v"
composer-outdated-option: ""
skip-phpstan: false
skip-phplint: false
skip-rector: false
skip-phpmd: false
skip-psalm: true
skip-composer-ununsed: true
secrets:
envPAT: "${{ secrets.GITHUB_TOKEN }}"

check-composer:
name: "Check composer dependencies"

runs-on: "${{ matrix.operating-system }}"
timeout-minutes: 10
continue-on-error: false

needs: "ci"

strategy:
fail-fast: false

matrix:
operating-system:
- "ubuntu-20.04"

php-version:
# Should use the lowest supported version
- "8.1"

steps:
- name: "Checkout"
uses: "actions/checkout@v3"
with:
# Disabling shallow clone is recommended for improving relevancy of reporting
fetch-depth: 0
lfs: false
persist-credentials: false

- name: "Install PHP"
uses: "shivammathur/setup-php@2.25.5"
with:
php-version: "${{ matrix.php-version }}"
extensions: "none, phar, json, opcache, curl, iconv, mbstring, ctype, dom, intl, simplexml, tokenizer, xml, xmlwriter"
ini-values: "opcache.enable=1, opcache.fast_shutdown=0, zend.assertions=1, assert.exception=On, intl.default_locale=de, intl.use_exceptions=1, zend.exception_ignore_args=0"
coverage: "none"
tools: "composer:v2, composer-unused"
env:
fail-fast: true
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
phpts: "nts"
debug: true

- name: "Update dependencies with composer"
uses: "ramsey/composer-install@2.2.0"
with:
dependency-versions: "${{ matrix.dependencies }}"
composer-options: "--optimize-autoloader --prefer-dist --prefer-stable -v"

- name: "Check composer.json"
run: "composer-unused unused --ansi --no-progress --no-interaction --output-format=github"

tests:
name: "UnitTests with PHPUnit"

Expand Down Expand Up @@ -68,14 +118,15 @@ jobs:
uses: "shivammathur/setup-php@2.25.5"
with:
php-version: "${{ matrix.php-version }}"
extensions: "none, phar, json, opcache, dom, iconv, mbstring, simplexml, tokenizer, xml, xmlwriter"
extensions: "none, phar, json, opcache, curl, iconv, mbstring, dom, intl, simplexml, tokenizer, xml, xmlwriter"
ini-values: "opcache.enable=1, opcache.fast_shutdown=0, zend.assertions=1, assert.exception=On, intl.default_locale=de, intl.use_exceptions=1, zend.exception_ignore_args=0"
coverage: "none"
tools: "composer:v2"
env:
fail-fast: true
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
phpts: "nts"
debug: true

- name: "Update dependencies with composer"
uses: "ramsey/composer-install@2.2.0"
Expand Down Expand Up @@ -121,14 +172,15 @@ jobs:
uses: "shivammathur/setup-php@2.25.5"
with:
php-version: "${{ matrix.php-version }}"
extensions: "none, phar, json, opcache, ctype, curl, dom, iconv, mbstring, simplexml, tokenizer, xml, xmlwriter"
extensions: "none, phar, json, opcache, curl, iconv, mbstring, dom, intl, simplexml, tokenizer, xml, xmlwriter"
ini-values: "opcache.enable=1, opcache.fast_shutdown=0, zend.assertions=1, assert.exception=On, intl.default_locale=de, intl.use_exceptions=1, zend.exception_ignore_args=0, xdebug.mode=coverage"
coverage: "xdebug"
tools: "composer:v2"
env:
fail-fast: true
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
phpts: "nts"
debug: true

- name: "Update dependencies with composer"
uses: "ramsey/composer-install@2.2.0"
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/labels.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ jobs:
permissions:
issues: write

runs-on: ubuntu-latest
runs-on: "ubuntu-22.04"

steps:
- name: "Checkout"
Expand All @@ -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"
6 changes: 3 additions & 3 deletions .github/workflows/lock-closed-issues.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}"
6 changes: 3 additions & 3 deletions .github/workflows/reactions.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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?
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/release-drafter.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}"
3 changes: 1 addition & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,7 @@
"source": "https://github.com/mimmi20/contact"
},
"require": {
"php": "^8.1.0",
"ext-mbstring": "*"
"php": "^8.1.0"
},
"require-dev": {
"ext-ctype": "*",
Expand Down

0 comments on commit 1a1b3d7

Please sign in to comment.