Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
BrewingCoder committed Apr 26, 2024
2 parents 5534e86 + d95a36d commit 8b7c736
Show file tree
Hide file tree
Showing 5 changed files with 41,302 additions and 12 deletions.
1 change: 1 addition & 0 deletions .github/workflows/discord_notification.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ on:
- '.github/**'
- '.gitignore'
- '.gitattributes'
- '.luacheckrc'
- 'config.ld'
- 'README.md'
- 'LICENSE'
Expand Down
71 changes: 60 additions & 11 deletions .github/workflows/lint.yaml
Original file line number Diff line number Diff line change
@@ -1,16 +1,65 @@
# name: Lint
# on: [push, pull_request]

# jobs:
# lint:
# name: Lint
# runs-on: ubuntu-latest
# steps:
# - name: checkout
# uses: actions/checkout@v4
# with:
# repository: 'CuteOne/BadRotations'
# - name: wow-lint
# uses: davidcraig/action-wow-lint@v1.0.1
# with:
# path-to-files: '**/*.lua'

name: Lint
on: [push, pull_request]

on: [push, pull_request, workflow_dispatch]

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: ${{ github.event_name == 'pull_request' }}

jobs:
lint:
name: Lint
lua-check:
name: Lua Check
runs-on: ubuntu-latest
permissions:
contents: read
issues: read
checks: write
pull-requests: write
if: (github.actor != 'dependabot[bot]')

steps:
- name: checkout
uses: actions/checkout@v4
with:
repository: 'ps-wow/action-test-repo'
- name: wow-lint
uses: davidcraig/action-wow-lint@v1.0.1
with:
path-to-files: '**/*.lua'
- name: Checkout source code
uses: actions/checkout@v4

# Optional step to run on only changed files
- name: Get changed files
id: changed-files
uses: tj-actions/changed-files@v44
with:
files: |
**.lua
- name: Lua Check
if: steps.changed-files.outputs.any_changed == 'true'
uses: Kong/public-shared-actions/code-check-actions/lua-lint@main
with:
# additional_args: '--no-default-config --config .luacheckrc'
files: ${{ steps.changed-files.outputs.all_changed_files }}

# name: Luacheck
# on: [push, pull_request]
# jobs:
# lua-lint:
# runs-on: ubuntu-latest
# steps:
# - name: Checkout
# uses: actions/checkout@v4
# - name: Luacheck linter
# uses: lunarmodules/luacheck@v1
Loading

0 comments on commit 8b7c736

Please sign in to comment.