mirror of
https://github.com/ivuorinen/.github.git
synced 2026-01-26 11:23:57 +00:00
chore(lint): linting, fixed editorconfig
This commit is contained in:
@@ -40,5 +40,5 @@ tab_width = 4
|
|||||||
[{*.tf,*.tfvars}]
|
[{*.tf,*.tfvars}]
|
||||||
tab_width = 4
|
tab_width = 4
|
||||||
|
|
||||||
[*.md,.github/workflows/*.yml]
|
[{*.md,.github/workflows/*.yml}]
|
||||||
max_line_length = 300
|
max_line_length = 300
|
||||||
|
|||||||
12
.github/workflows/composer-install.yml
vendored
12
.github/workflows/composer-install.yml
vendored
@@ -14,8 +14,8 @@ jobs:
|
|||||||
|
|
||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
operating-system: ['ubuntu-latest']
|
operating-system: [ "ubuntu-latest" ]
|
||||||
php-versions: ['8.0', '8.1', '8.2']
|
php: [ "8.0", "8.1", "8.2" ]
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v3
|
||||||
@@ -25,13 +25,13 @@ jobs:
|
|||||||
uses: actions/cache@v3
|
uses: actions/cache@v3
|
||||||
with:
|
with:
|
||||||
path: vendor
|
path: vendor
|
||||||
key: ${{ runner.os }}-php-${{ matrix.php-versions }}-${{ hashFiles('**/composer.json') }}
|
key: ${{ runner.os }}-php-${{ matrix.php }}-${{ hashFiles('**/composer.json') }}
|
||||||
restore-keys: |
|
restore-keys: |
|
||||||
${{ runner.os }}-php-${{ matrix.php-versions }}-
|
${{ runner.os }}-php-${{ matrix.php }}-
|
||||||
${{ runner.os }}-php-
|
${{ runner.os }}-php-
|
||||||
|
|
||||||
- name: Composer (PHP ${{ matrix.php-versions }})
|
- name: Composer (PHP ${{ matrix.php }})
|
||||||
uses: php-actions/composer@v6
|
uses: php-actions/composer@v6
|
||||||
with:
|
with:
|
||||||
php_version: ${{ matrix.php-versions }}
|
php_version: ${{ matrix.php }}
|
||||||
args: --no-progress --prefer-dist --optimize-autoloader
|
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
|
# 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"
|
name: "Dependency Review"
|
||||||
|
|
||||||
on: [pull_request]
|
on: [ pull_request ]
|
||||||
|
|
||||||
permissions:
|
permissions:
|
||||||
contents: read
|
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:
|
on:
|
||||||
push:
|
push:
|
||||||
branches: [main]
|
branches: [ main ]
|
||||||
pull_request:
|
pull_request:
|
||||||
branches: [main]
|
branches: [ main ]
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
laravel-tests:
|
laravel-tests:
|
||||||
|
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
steps:
|
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
|
- name: Compress Images
|
||||||
uses: calibreapp/image-actions@main
|
uses: calibreapp/image-actions@main
|
||||||
with:
|
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 }}
|
githubToken: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
|||||||
4
.github/workflows/pr-lint.yml
vendored
4
.github/workflows/pr-lint.yml
vendored
@@ -19,10 +19,10 @@ env:
|
|||||||
#############################
|
#############################
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
branches-ignore: [master, main]
|
branches-ignore: [ master, main ]
|
||||||
# Remove the line above to run when pushing to master
|
# Remove the line above to run when pushing to master
|
||||||
pull_request:
|
pull_request:
|
||||||
branches: [master, main]
|
branches: [ master, main ]
|
||||||
|
|
||||||
###############
|
###############
|
||||||
# Set the Job #
|
# Set the Job #
|
||||||
|
|||||||
2
.github/workflows/release-drafter.yml
vendored
2
.github/workflows/release-drafter.yml
vendored
@@ -1,10 +1,10 @@
|
|||||||
---
|
---
|
||||||
name: Release Drafter
|
name: Release Drafter
|
||||||
|
|
||||||
# yamllint disable-line rule:truthy
|
|
||||||
on:
|
on:
|
||||||
workflow_call:
|
workflow_call:
|
||||||
|
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
update_release_draft:
|
update_release_draft:
|
||||||
name: ✏️ Draft release
|
name: ✏️ Draft release
|
||||||
|
|||||||
3
.github/workflows/reviewdog-linters.yml
vendored
3
.github/workflows/reviewdog-linters.yml
vendored
@@ -1,7 +1,7 @@
|
|||||||
---
|
---
|
||||||
name: Reviewdog Linters
|
name: Reviewdog Linters
|
||||||
|
|
||||||
on: [push]
|
on: [ push ]
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
linters:
|
linters:
|
||||||
@@ -37,7 +37,6 @@ jobs:
|
|||||||
--list
|
--list
|
||||||
--write
|
--write
|
||||||
--diff
|
--diff
|
||||||
--simplify
|
|
||||||
--language-dialect bash
|
--language-dialect bash
|
||||||
--indent 2
|
--indent 2
|
||||||
--binary-next-line
|
--binary-next-line
|
||||||
|
|||||||
1
.github/workflows/stale.yml
vendored
1
.github/workflows/stale.yml
vendored
@@ -1,7 +1,6 @@
|
|||||||
---
|
---
|
||||||
name: Stale
|
name: Stale
|
||||||
|
|
||||||
# yamllint disable-line rule:truthy
|
|
||||||
on:
|
on:
|
||||||
schedule:
|
schedule:
|
||||||
- cron: "0 8 * * *"
|
- cron: "0 8 * * *"
|
||||||
|
|||||||
@@ -10,6 +10,7 @@ on:
|
|||||||
- .github/workflows/sync-labels-to-own-projects.yml
|
- .github/workflows/sync-labels-to-own-projects.yml
|
||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
|
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
sync-labels:
|
sync-labels:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
@@ -32,11 +33,12 @@ jobs:
|
|||||||
| sed 's|\"||'
|
| sed 's|\"||'
|
||||||
)"
|
)"
|
||||||
|
|
||||||
EOF=$(dd if=/dev/urandom bs=15 count=1 status=none | base64)
|
EOF="$(dd if=/dev/urandom bs=15 count=1 status=none | base64)"
|
||||||
echo "REPOS<<$EOF" >> "$GITHUB_ENV"
|
{
|
||||||
echo $REPOS >> "$GITHUB_ENV"
|
echo "REPOS<<$EOF"
|
||||||
echo "$EOF" >> "$GITHUB_ENV"
|
echo "$REPOS"
|
||||||
|
echo "$EOF"
|
||||||
|
} >> "$GITHUB_ENV"
|
||||||
- uses: micnncim/action-label-syncer@v1
|
- uses: micnncim/action-label-syncer@v1
|
||||||
with:
|
with:
|
||||||
prune: true
|
prune: true
|
||||||
|
|||||||
2
.github/workflows/sync-labels.yml
vendored
2
.github/workflows/sync-labels.yml
vendored
@@ -1,7 +1,6 @@
|
|||||||
---
|
---
|
||||||
name: Sync labels
|
name: Sync labels
|
||||||
|
|
||||||
# yamllint disable-line rule:truthy
|
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
branches:
|
branches:
|
||||||
@@ -13,6 +12,7 @@ on:
|
|||||||
workflow_call:
|
workflow_call:
|
||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
|
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
labels:
|
labels:
|
||||||
name: ♻️ Sync labels
|
name: ♻️ Sync labels
|
||||||
|
|||||||
Reference in New Issue
Block a user