Skip to content

ci: use fixed versions for actions instead of master #198

New issue

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

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

Already on GitHub? # to your account

Merged
merged 6 commits into from
Apr 20, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/apply-labels.yml
Original file line number Diff line number Diff line change
@@ -14,7 +14,7 @@ name: 🏷️ Add labels

jobs:
label:
uses: wayofdev/gh-actions/.github/workflows/apply-labels.yml@master
uses: cycle/gh-actions/.github/workflows/apply-labels.yml@v4.0.0
with:
os: ubuntu-latest
secrets:
60 changes: 60 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -26,4 +26,64 @@ jobs:
failOnErrors: false
helpURL: 'https://github.com/conventional-changelog/commitlint/#what-is-commitlint'

coding-standards:
timeout-minutes: 4
runs-on: ${{ matrix.os }}
concurrency:
cancel-in-progress: true
group: coding-standards-${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
strategy:
fail-fast: true
matrix:
os:
- ubuntu-latest
php-version:
- '8.2'
dependencies:
- locked

steps:
- name: 📦 Check out the codebase
uses: actions/checkout@v4.1.1

- name: 🧐 Lint YAML files
uses: ibiqlik/action-yamllint@v3.1.1
with:
config_file: .yamllint.yaml
file_or_dir: '.'
strict: true

- name: 🛠️ Setup PHP
uses: shivammathur/setup-php@2.30.2
with:
php-version: ${{ matrix.php-version }}
extensions: mbstring, pdo, pdo_sqlite
ini-values: error_reporting=E_ALL
coverage: xdebug

- name: 🛠️ Setup problem matchers
run: |
echo "::add-matcher::${{ runner.tool_cache }}/php.json"

- name: 🤖 Validate composer.json and composer.lock
run: composer validate --ansi --strict

- name: 🔍 Get composer cache directory
uses: cycle/gh-actions/actions/composer/get-cache-directory@v4.0.0

- name: ♻️ Restore cached dependencies installed with composer
uses: actions/cache@v4.0.2
with:
path: ${{ env.COMPOSER_CACHE_DIR }}
key: php-${{ matrix.php-version }}-composer-${{ matrix.dependencies }}-${{ hashFiles('composer.lock') }}
restore-keys: php-${{ matrix.php-version }}-composer-${{ matrix.dependencies }}-

- name: 📥 Install "${{ matrix.dependencies }}" dependencies
uses: cycle/gh-actions/actions/composer/install@v4.0.0
with:
dependencies: ${{ matrix.dependencies }}

- name: 🔍 Run composer-normalize
run: composer normalize --ansi --dry-run

...
3 changes: 1 addition & 2 deletions .github/workflows/create-release.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
---

# https://github.com/wayofdev/gh-actions/blob/master/.github/workflows/create-release.yml
# https://github.com/google-github-actions/release-please-action#release-types-supported
# https://github.com/googleapis/release-please/blob/main/docs/customizing.md

@@ -16,7 +15,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: 🎉 Create release
uses: google-github-actions/release-please-action@v4
uses: google-github-actions/release-please-action@v4.1.0
id: release
with:
token: ${{ secrets.GITHUB_TOKEN }}
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
.idea/
.env
.coveralls.yml
composer.lock
vendor/
tests/runtime/*
build/logs/*
84 changes: 48 additions & 36 deletions composer.json
Original file line number Diff line number Diff line change
@@ -1,24 +1,18 @@
{
"name": "cycle/database",
"type": "library",
"description": "DBAL, schema introspection, migration and pagination",
"keywords": ["dbal", "database", "mysql", "mssql", "sqlite", "postgresql", "orm", "sql", "query-builder"],
"license": "MIT",
"conflict": {
"spiral/database": "*"
},
"homepage": "https://cycle-orm.dev",
"support": {
"issues": "https://github.com/cycle/database/issues",
"source": "https://github.com/cycle/database",
"docs": "https://cycle-orm.dev/docs",
"chat": "https://discord.gg/spiralphp"
},
"funding": [
{
"type": "github",
"url": "https://github.com/sponsors/cycle"
}
"type": "library",
"keywords": [
"dbal",
"database",
"mysql",
"mssql",
"sqlite",
"postgresql",
"orm",
"sql",
"query-builder"
],
"authors": [
{
@@ -38,6 +32,19 @@
"email": "pavel.buchnev@spiralscout.com"
}
],
"homepage": "https://cycle-orm.dev",
"support": {
"issues": "https://github.com/cycle/database/issues",
"chat": "https://discord.gg/spiralphp",
"source": "https://github.com/cycle/database",
"docs": "https://cycle-orm.dev/docs"
},
"funding": [
{
"type": "github",
"url": "https://github.com/sponsors/cycle"
}
],
"require": {
"php": ">=8.0",
"ext-pdo": "*",
@@ -46,40 +53,45 @@
"spiral/pagination": "^2.8 || ^3.0",
"symfony/polyfill-php83": "^1.28"
},
"autoload": {
"files": [
"src/polyfill.php",
"src/functions_polyfill.php"
],
"psr-4": {
"Cycle\\Database\\": "src"
}
},
"require-dev": {
"ergebnis/composer-normalize": "^2.42",
"infection/infection": "^0.26.10",
"mockery/mockery": "^1.5",
"phpunit/phpunit": "^9.5",
"spiral/tokenizer": "^2.14 | ^3.0",
"spiral/tokenizer": "^2.14 || ^3.0",
"vimeo/psalm": "^5.18"
},
"conflict": {
"spiral/database": "*"
},
"minimum-stability": "dev",
"prefer-stable": true,
"autoload": {
"psr-4": {
"Cycle\\Database\\": "src"
},
"files": [
"src/polyfill.php",
"src/functions_polyfill.php"
]
},
"autoload-dev": {
"psr-4": {
"Cycle\\Database\\Tests\\": "tests/Database"
}
},
"config": {
"allow-plugins": {
"ergebnis/composer-normalize": true,
"infection/extension-installer": true
},
"sort-packages": true
},
"scripts": {
"test": [
"phpcs --standard=phpcs.xml",
"psalm --no-cache",
"phpunit"
]
},
"config": {
"sort-packages": true,
"allow-plugins": {
"infection/extension-installer": true
}
},
"minimum-stability": "dev",
"prefer-stable": true
}
}
Loading
Loading