chore(lint): linting, fixed editorconfig

This commit is contained in:
2023-09-06 08:21:38 +03:00
parent 2e43d12ef0
commit 4ee109b6dc
11 changed files with 22 additions and 28 deletions

View File

@@ -40,5 +40,5 @@ tab_width = 4
[{*.tf,*.tfvars}]
tab_width = 4
[*.md,.github/workflows/*.yml]
[{*.md,.github/workflows/*.yml}]
max_line_length = 300

View File

@@ -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

View File

@@ -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

View File

@@ -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:

View File

@@ -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 cant 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 }}

View File

@@ -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 #

View File

@@ -1,10 +1,10 @@
---
name: Release Drafter
# yamllint disable-line rule:truthy
on:
workflow_call:
jobs:
update_release_draft:
name: ✏️ Draft release

View File

@@ -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

View File

@@ -1,7 +1,6 @@
---
name: Stale
# yamllint disable-line rule:truthy
on:
schedule:
- cron: "0 8 * * *"

View File

@@ -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

View File

@@ -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