Skip to content

Commit

Permalink
feature: add github PR checks
Browse files Browse the repository at this point in the history
  • Loading branch information
4x8Matrix committed May 25, 2024
1 parent 831cd8d commit 33a7542
Show file tree
Hide file tree
Showing 3 changed files with 48 additions and 2 deletions.
23 changes: 23 additions & 0 deletions .github/workflows/pull-request-selene.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
name: Pull Request Selene Linter

on:
push:
branches: [ "*" ]
pull_request:
branches: [ "*" ]

workflow_dispatch:

jobs:
generate:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- uses: ok-nick/[email protected]
with:
version: "^1.0.0"
token: ${{ secrets.GIT_TOKEN }}
- name: Generate Standard Library
run: selene generate-roblox-std
- name: Run Selene
run: selene Package
23 changes: 23 additions & 0 deletions .github/workflows/pull-request-stylua.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
name: Pull Request Selene Linter

on:
push:
branches: [ "*" ]
pull_request:
branches: [ "*" ]

workflow_dispatch:

jobs:
generate:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- uses: ok-nick/[email protected]
with:
version: "^1.0.0"
token: ${{ secrets.GIT_TOKEN }}
- name: Generate Standard Library
run: selene generate-roblox-std
- name: Run Selene
run: stylua --check --output-format Summary
4 changes: 2 additions & 2 deletions aftman.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,5 @@
# To add a new tool, add an entry to this table.
[tools]
lune = "filiptibell/[email protected]"
stylua = "JohnnyMorganz/StyLua@0.19.1"
selene = "Kampfkarren/selene@0.25.0"
stylua = "JohnnyMorganz/StyLua@0.20.0"
selene = "Kampfkarren/selene@0.27.1"

0 comments on commit 33a7542

Please sign in to comment.