From 8b25d2c4e814e0c40411cff1a9a3c19f729d7a26 Mon Sep 17 00:00:00 2001 From: theFox6 Date: Wed, 26 Feb 2020 17:14:47 +0100 Subject: [PATCH] added luacheck workflows --- .github/ISSUE_TEMPLATE/bug_report.md | 6 ++---- .github/ISSUE_TEMPLATE/feature_request.md | 10 ++++------ .github/workflows/luacheck.yml | 13 +++++++++++++ .github/workflows/tidy_luacheck.yml | 13 +++++++++++++ 4 files changed, 32 insertions(+), 10 deletions(-) create mode 100644 .github/workflows/luacheck.yml create mode 100644 .github/workflows/tidy_luacheck.yml diff --git a/.github/ISSUE_TEMPLATE/bug_report.md b/.github/ISSUE_TEMPLATE/bug_report.md index 352f6f2..2f4becb 100644 --- a/.github/ISSUE_TEMPLATE/bug_report.md +++ b/.github/ISSUE_TEMPLATE/bug_report.md @@ -1,14 +1,12 @@ --- name: Bug report about: Report a bug to help fixing it -title: '' labels: unconfirmed bug -assignees: '' --- **Describe the bug** -A clear and concise description of what the bug is. +Insert a description of what the bug is. **To Reproduce** If known, steps to reproduce the behavior: @@ -18,7 +16,7 @@ If known, steps to reproduce the behavior: 4. See error **Expected behavior** -A clear and concise description of what you expected to happen. +Insert a description of what you expected to happen. **Screenshots** If applicable, add screenshots to help explain your problem. diff --git a/.github/ISSUE_TEMPLATE/feature_request.md b/.github/ISSUE_TEMPLATE/feature_request.md index 11fc491..1f0d6c3 100644 --- a/.github/ISSUE_TEMPLATE/feature_request.md +++ b/.github/ISSUE_TEMPLATE/feature_request.md @@ -1,20 +1,18 @@ --- name: Feature request about: Suggest an idea for this project -title: '' labels: enhancement -assignees: '' --- **Is your feature request related to a problem? Please describe.** -A clear and concise description of what the problem is. Ex. I'm always frustrated when [...] +Insert a description of what the problem is. Example: I'm always frustrated when [...] **Describe the solution you'd like** -A clear and concise description of what you want to happen. +Insert a description of what you want to happen. **Describe alternatives you've considered** -A clear and concise description of any alternative solutions or features you've considered. +Insert a description of any alternative solutions or features you've considered. **Additional context** -Add any other context or screenshots about the feature request here. +Add any other context eg. screenshots about the feature request here. diff --git a/.github/workflows/luacheck.yml b/.github/workflows/luacheck.yml new file mode 100644 index 0000000..47e9e74 --- /dev/null +++ b/.github/workflows/luacheck.yml @@ -0,0 +1,13 @@ +name: luacheck + +on: [push] + +jobs: + lint: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2.0.0 + - name: run luacheck + uses: Roang-zero1/factorio-mod-luacheck@master + with: + LUACHECKRC_URL: https://raw.githubusercontent.com/${{github.repository}}/${{github.sha}}/.luacheckrc diff --git a/.github/workflows/tidy_luacheck.yml b/.github/workflows/tidy_luacheck.yml new file mode 100644 index 0000000..fa7c364 --- /dev/null +++ b/.github/workflows/tidy_luacheck.yml @@ -0,0 +1,13 @@ +name: tidy_luacheck + +on: [push] + +jobs: + lint: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2.0.0 + - name: run luacheck + uses: Roang-zero1/factorio-mod-luacheck@master + with: + LUACHECKRC_URL: https://raw.githubusercontent.com/${{github.repository}}/${{github.sha}}/.luacheck_tidy