From 33a75425fa48fce2e4e781be943a68461ce79476 Mon Sep 17 00:00:00 2001 From: AsyncMatrix Date: Sat, 25 May 2024 13:23:03 +0100 Subject: [PATCH] feature: add github PR checks --- .github/workflows/pull-request-selene.yml | 23 +++++++++++++++++++++++ .github/workflows/pull-request-stylua.yml | 23 +++++++++++++++++++++++ aftman.toml | 4 ++-- 3 files changed, 48 insertions(+), 2 deletions(-) create mode 100644 .github/workflows/pull-request-selene.yml create mode 100644 .github/workflows/pull-request-stylua.yml diff --git a/.github/workflows/pull-request-selene.yml b/.github/workflows/pull-request-selene.yml new file mode 100644 index 0000000..6c20c17 --- /dev/null +++ b/.github/workflows/pull-request-selene.yml @@ -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/setup-aftman@v0.4.2 + with: + version: "^1.0.0" + token: ${{ secrets.GIT_TOKEN }} + - name: Generate Standard Library + run: selene generate-roblox-std + - name: Run Selene + run: selene Package \ No newline at end of file diff --git a/.github/workflows/pull-request-stylua.yml b/.github/workflows/pull-request-stylua.yml new file mode 100644 index 0000000..25431dd --- /dev/null +++ b/.github/workflows/pull-request-stylua.yml @@ -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/setup-aftman@v0.4.2 + 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 \ No newline at end of file diff --git a/aftman.toml b/aftman.toml index 6a742e8..6e76416 100644 --- a/aftman.toml +++ b/aftman.toml @@ -4,5 +4,5 @@ # To add a new tool, add an entry to this table. [tools] lune = "filiptibell/lune@0.8.2" -stylua = "JohnnyMorganz/StyLua@0.19.1" -selene = "Kampfkarren/selene@0.25.0" \ No newline at end of file +stylua = "JohnnyMorganz/StyLua@0.20.0" +selene = "Kampfkarren/selene@0.27.1" \ No newline at end of file