mirror of
https://github.com/ivuorinen/.github.git
synced 2026-01-26 03:13:57 +00:00
chore(lint): linting, fixed editorconfig
This commit is contained in:
@@ -40,5 +40,5 @@ tab_width = 4
|
||||
[{*.tf,*.tfvars}]
|
||||
tab_width = 4
|
||||
|
||||
[*.md,.github/workflows/*.yml]
|
||||
[{*.md,.github/workflows/*.yml}]
|
||||
max_line_length = 300
|
||||
|
||||
12
.github/workflows/composer-install.yml
vendored
12
.github/workflows/composer-install.yml
vendored
@@ -14,8 +14,8 @@ jobs:
|
||||
|
||||
strategy:
|
||||
matrix:
|
||||
operating-system: ['ubuntu-latest']
|
||||
php-versions: ['8.0', '8.1', '8.2']
|
||||
operating-system: [ "ubuntu-latest" ]
|
||||
php: [ "8.0", "8.1", "8.2" ]
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
@@ -25,13 +25,13 @@ jobs:
|
||||
uses: actions/cache@v3
|
||||
with:
|
||||
path: vendor
|
||||
key: ${{ runner.os }}-php-${{ matrix.php-versions }}-${{ hashFiles('**/composer.json') }}
|
||||
key: ${{ runner.os }}-php-${{ matrix.php }}-${{ hashFiles('**/composer.json') }}
|
||||
restore-keys: |
|
||||
${{ runner.os }}-php-${{ matrix.php-versions }}-
|
||||
${{ runner.os }}-php-${{ matrix.php }}-
|
||||
${{ runner.os }}-php-
|
||||
|
||||
- name: Composer (PHP ${{ matrix.php-versions }})
|
||||
- name: Composer (PHP ${{ matrix.php }})
|
||||
uses: php-actions/composer@v6
|
||||
with:
|
||||
php_version: ${{ matrix.php-versions }}
|
||||
php_version: ${{ matrix.php }}
|
||||
args: --no-progress --prefer-dist --optimize-autoloader
|
||||
|
||||
2
.github/workflows/dependency-review.yml
vendored
2
.github/workflows/dependency-review.yml
vendored
@@ -10,7 +10,7 @@
|
||||
# Public documentation: https://docs.github.com/en/code-security/supply-chain-security/understanding-your-software-supply-chain/about-dependency-review#dependency-review-enforcement
|
||||
name: "Dependency Review"
|
||||
|
||||
on: [pull_request]
|
||||
on: [ pull_request ]
|
||||
|
||||
permissions:
|
||||
contents: read
|
||||
|
||||
5
.github/workflows/laravel-phpunit.yml
vendored
5
.github/workflows/laravel-phpunit.yml
vendored
@@ -3,13 +3,12 @@ name: Laravel Setup and Composer test
|
||||
|
||||
on:
|
||||
push:
|
||||
branches: [main]
|
||||
branches: [ main ]
|
||||
pull_request:
|
||||
branches: [main]
|
||||
branches: [ main ]
|
||||
|
||||
jobs:
|
||||
laravel-tests:
|
||||
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
|
||||
5
.github/workflows/pr-compress-images.yml
vendored
5
.github/workflows/pr-compress-images.yml
vendored
@@ -22,9 +22,4 @@ jobs:
|
||||
- name: Compress Images
|
||||
uses: calibreapp/image-actions@main
|
||||
with:
|
||||
# The `GITHUB_TOKEN` is automatically generated by GitHub and scoped only to the repository that is
|
||||
# currently running the action. By default, the action can’t update Pull Requests initiated from
|
||||
# forked repositories.
|
||||
# See https://docs.github.com/en/actions/reference/authentication-in-a-workflow and
|
||||
# https://help.github.com/en/articles/virtual-environments-for-github-actions#token-permissions
|
||||
githubToken: ${{ secrets.GITHUB_TOKEN }}
|
||||
|
||||
4
.github/workflows/pr-lint.yml
vendored
4
.github/workflows/pr-lint.yml
vendored
@@ -19,10 +19,10 @@ env:
|
||||
#############################
|
||||
on:
|
||||
push:
|
||||
branches-ignore: [master, main]
|
||||
branches-ignore: [ master, main ]
|
||||
# Remove the line above to run when pushing to master
|
||||
pull_request:
|
||||
branches: [master, main]
|
||||
branches: [ master, main ]
|
||||
|
||||
###############
|
||||
# Set the Job #
|
||||
|
||||
2
.github/workflows/release-drafter.yml
vendored
2
.github/workflows/release-drafter.yml
vendored
@@ -1,10 +1,10 @@
|
||||
---
|
||||
name: Release Drafter
|
||||
|
||||
# yamllint disable-line rule:truthy
|
||||
on:
|
||||
workflow_call:
|
||||
|
||||
|
||||
jobs:
|
||||
update_release_draft:
|
||||
name: ✏️ Draft release
|
||||
|
||||
3
.github/workflows/reviewdog-linters.yml
vendored
3
.github/workflows/reviewdog-linters.yml
vendored
@@ -1,7 +1,7 @@
|
||||
---
|
||||
name: Reviewdog Linters
|
||||
|
||||
on: [push]
|
||||
on: [ push ]
|
||||
|
||||
jobs:
|
||||
linters:
|
||||
@@ -37,7 +37,6 @@ jobs:
|
||||
--list
|
||||
--write
|
||||
--diff
|
||||
--simplify
|
||||
--language-dialect bash
|
||||
--indent 2
|
||||
--binary-next-line
|
||||
|
||||
1
.github/workflows/stale.yml
vendored
1
.github/workflows/stale.yml
vendored
@@ -1,7 +1,6 @@
|
||||
---
|
||||
name: Stale
|
||||
|
||||
# yamllint disable-line rule:truthy
|
||||
on:
|
||||
schedule:
|
||||
- cron: "0 8 * * *"
|
||||
|
||||
@@ -10,6 +10,7 @@ on:
|
||||
- .github/workflows/sync-labels-to-own-projects.yml
|
||||
workflow_dispatch:
|
||||
|
||||
|
||||
jobs:
|
||||
sync-labels:
|
||||
runs-on: ubuntu-latest
|
||||
@@ -32,11 +33,12 @@ jobs:
|
||||
| sed 's|\"||'
|
||||
)"
|
||||
|
||||
EOF=$(dd if=/dev/urandom bs=15 count=1 status=none | base64)
|
||||
echo "REPOS<<$EOF" >> "$GITHUB_ENV"
|
||||
echo $REPOS >> "$GITHUB_ENV"
|
||||
echo "$EOF" >> "$GITHUB_ENV"
|
||||
|
||||
EOF="$(dd if=/dev/urandom bs=15 count=1 status=none | base64)"
|
||||
{
|
||||
echo "REPOS<<$EOF"
|
||||
echo "$REPOS"
|
||||
echo "$EOF"
|
||||
} >> "$GITHUB_ENV"
|
||||
- uses: micnncim/action-label-syncer@v1
|
||||
with:
|
||||
prune: true
|
||||
|
||||
2
.github/workflows/sync-labels.yml
vendored
2
.github/workflows/sync-labels.yml
vendored
@@ -1,7 +1,6 @@
|
||||
---
|
||||
name: Sync labels
|
||||
|
||||
# yamllint disable-line rule:truthy
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
@@ -13,6 +12,7 @@ on:
|
||||
workflow_call:
|
||||
workflow_dispatch:
|
||||
|
||||
|
||||
jobs:
|
||||
labels:
|
||||
name: ♻️ Sync labels
|
||||
|
||||
Reference in New Issue
Block a user