From 5801419da6c856d51184721061acf3b125ef57f6 Mon Sep 17 00:00:00 2001 From: Ismo Vuorinen Date: Wed, 26 Apr 2023 10:34:36 +0300 Subject: [PATCH] Chore: Workflows and other scaffolding --- .editorconfig | 29 ++++++ .github/CODEOWNERS | 1 + .github/renovate.json | 4 + .github/workflows/pr-lint.yml | 13 +++ .github/workflows/release-drafter.yml | 10 ++ .github/workflows/stale.yml | 13 +++ .github/workflows/sync-labels.yml | 18 ++++ .gitignore | 134 ++++++++++++++++++++++++++ 8 files changed, 222 insertions(+) create mode 100644 .editorconfig create mode 100644 .github/CODEOWNERS create mode 100644 .github/renovate.json create mode 100644 .github/workflows/pr-lint.yml create mode 100644 .github/workflows/release-drafter.yml create mode 100644 .github/workflows/stale.yml create mode 100644 .github/workflows/sync-labels.yml create mode 100644 .gitignore diff --git a/.editorconfig b/.editorconfig new file mode 100644 index 0000000..b132a53 --- /dev/null +++ b/.editorconfig @@ -0,0 +1,29 @@ +root = true + +[*] +charset = utf-8 +end_of_line = lf +indent_size = 2 +indent_style = space +insert_final_newline = true +max_line_length = 160 +tab_width = 2 +trim_trailing_whitespace = true + +[*.php] +indent_size = 4 +max_line_length = 110 +tab_width = 4 + +[{*.http,*.rest}] +indent_size = 0 + +[{*.markdown,*.md}] +indent_size = 4 +tab_width = 4 + +[{*.mk,GNUmakefile,makefile}] +tab_width = 4 + +[{*.tf,*.tfvars}] +tab_width = 4 diff --git a/.github/CODEOWNERS b/.github/CODEOWNERS new file mode 100644 index 0000000..a5ff83b --- /dev/null +++ b/.github/CODEOWNERS @@ -0,0 +1 @@ +* @ivuorinen diff --git a/.github/renovate.json b/.github/renovate.json new file mode 100644 index 0000000..5b9cda3 --- /dev/null +++ b/.github/renovate.json @@ -0,0 +1,4 @@ +{ + "$schema": "https://docs.renovatebot.com/renovate-schema.json", + "extends": ["github>ivuorinen/.github:renovate-config"] +} diff --git a/.github/workflows/pr-lint.yml b/.github/workflows/pr-lint.yml new file mode 100644 index 0000000..36b989c --- /dev/null +++ b/.github/workflows/pr-lint.yml @@ -0,0 +1,13 @@ +--- +name: PR Lint + +on: + push: + branches-ignore: [master, main] + # Remove the line above to run when pushing to master + pull_request: + branches: [master, main] + +jobs: + SuperLinter: + uses: ivuorinen/.github/.github/workflows/pr-lint.yml@main diff --git a/.github/workflows/release-drafter.yml b/.github/workflows/release-drafter.yml new file mode 100644 index 0000000..3b3945d --- /dev/null +++ b/.github/workflows/release-drafter.yml @@ -0,0 +1,10 @@ +--- +name: Release Drafter + +# yamllint disable-line rule:truthy +on: + workflow_call: + +jobs: + Draft: + uses: ivuorinen/.github/.github/workflows/sync-labels.yml@main diff --git a/.github/workflows/stale.yml b/.github/workflows/stale.yml new file mode 100644 index 0000000..e3884f4 --- /dev/null +++ b/.github/workflows/stale.yml @@ -0,0 +1,13 @@ +--- +name: Stale + +# yamllint disable-line rule:truthy +on: + schedule: + - cron: "0 8 * * *" + workflow_call: + workflow_dispatch: + +jobs: + stale: + uses: ivuorinen/.github/.github/workflows/stale.yml@main diff --git a/.github/workflows/sync-labels.yml b/.github/workflows/sync-labels.yml new file mode 100644 index 0000000..4b1488f --- /dev/null +++ b/.github/workflows/sync-labels.yml @@ -0,0 +1,18 @@ +--- +name: Sync labels + +# yamllint disable-line rule:truthy +on: + push: + branches: + - main + paths: + - .github/labels.yml + schedule: + - cron: "34 5 * * *" + workflow_call: + workflow_dispatch: + +jobs: + SyncLabels: + uses: ivuorinen/.github/.github/workflows/sync-labels.yml@main diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..e2a1faa --- /dev/null +++ b/.gitignore @@ -0,0 +1,134 @@ +.php-cs-fixer.cache +.php-cs-fixer.php +composer.phar +/vendor/ +.phpunit.result.cache +.phpunit.cache +/app/phpunit.xml +/phpunit.xml +/build/ +logs +*.log +npm-debug.log* +yarn-debug.log* +yarn-error.log* +lerna-debug.log* +.pnpm-debug.log* +report.[0-9]*.[0-9]*.[0-9]*.[0-9]*.json +pids +*.pid +*.seed +*.pid.lock +lib-cov +coverage +*.lcov +.nyc_output +.grunt +bower_components +.lock-wscript +build/Release +node_modules/ +jspm_packages/ +web_modules/ +*.tsbuildinfo +.npm +.eslintcache +.stylelintcache +.rpt2_cache/ +.rts2_cache_cjs/ +.rts2_cache_es/ +.rts2_cache_umd/ +.node_repl_history +*.tgz +.yarn-integrity +.env +.env.development.local +.env.test.local +.env.production.local +.env.local +.cache +.parcel-cache +.next +out +.nuxt +dist +.cache/ +.vuepress/dist +.temp +.docusaurus +.serverless/ +.fusebox/ +.dynamodb/ +.tern-port +.vscode-test +.yarn/cache +.yarn/unplugged +.yarn/build-state.yml +.yarn/install-state.gz +.pnp.* +[._]*.s[a-v][a-z] +!*.svg # comment out if you don't need vector files +[._]*.sw[a-p] +[._]s[a-rt-v][a-z] +[._]ss[a-gi-z] +[._]sw[a-p] +Session.vim +Sessionx.vim +.netrwhist +*~ +tags +[._]*.un~ +.idea/**/workspace.xml +.idea/**/tasks.xml +.idea/**/usage.statistics.xml +.idea/**/dictionaries +.idea/**/shelf +.idea/**/aws.xml +.idea/**/contentModel.xml +.idea/**/dataSources/ +.idea/**/dataSources.ids +.idea/**/dataSources.local.xml +.idea/**/sqlDataSources.xml +.idea/**/dynamic.xml +.idea/**/uiDesigner.xml +.idea/**/dbnavigator.xml +.idea/**/gradle.xml +.idea/**/libraries +cmake-build-*/ +.idea/**/mongoSettings.xml +*.iws +out/ +.idea_modules/ +atlassian-ide-plugin.xml +.idea/replstate.xml +.idea/sonarlint/ +com_crashlytics_export_strings.xml +crashlytics.properties +crashlytics-build.properties +fabric.properties +.idea/httpRequests +.idea/caches/build_file_checksums.ser +npm-debug.log +yarn-error.log +bootstrap/compiled.php +app/storage/ +public/storage +public/hot +public_html/storage +public_html/hot +storage/*.key +Homestead.yaml +Homestead.json +/.vagrant +/node_modules +/.pnp +.pnp.js +/coverage +/.next/ +/out/ +/build +.DS_Store +*.pem +.env*.local +.vercel +next-env.d.ts