-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add pull request failure request changes
- Loading branch information
1 parent
723d066
commit 59054c5
Showing
1 changed file
with
17 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,8 @@ | ||
name: CI-Code-Validation | ||
on: [push] | ||
on: | ||
push: | ||
pull_request: | ||
types: [opened, edited, reopened, synchronize, ready_for_review] | ||
|
||
jobs: | ||
luau-lsp: | ||
|
@@ -14,10 +17,6 @@ jobs: | |
- name: Install dependencies | ||
uses: ok-nick/[email protected] | ||
|
||
# - name: Create folder | ||
# run: | | ||
# mkdir Packages -p | ||
|
||
- name: Download type files | ||
run: curl -L "https://raw.githubusercontent.com/JohnnyMorganz/luau-lsp/main/scripts/globalTypes.d.lua" > globalTypes.d.lua | ||
|
||
|
@@ -33,6 +32,13 @@ jobs: | |
- name: Lint with luau-lsp | ||
run: luau-lsp analyze --defs=globalTypes.d.lua --sourcemap=sourcemap.json --no-strict-dm-types --ignore=Packages/** --flag:LuauTinyControlFlowAnalysis=True src | ||
|
||
- name: request changes | ||
if: ${{ github.event.pull_request && failure() }} | ||
uses: ntsd/auto-request-changes-action@v3 | ||
with: | ||
github-token: "${{ secrets.GITHUB_TOKEN }}" | ||
review-message: "Fix Selene errors" | ||
|
||
- name: Send mail | ||
if: ${{ failure() }} | ||
uses: dawidd6/action-send-mail@v3 | ||
|
@@ -67,12 +73,12 @@ jobs: | |
- name : Lint with selene | ||
run: selene src | ||
|
||
#- name: Check for StyLua formatting | ||
# uses: JohnnyMorganz/stylua-action@v3 | ||
# with: | ||
# token: ${{ secrets.GITHUB_TOKEN }} | ||
# version: latest | ||
# args: --check src | ||
- name: request changes | ||
if: ${{ github.event.pull_request && failure() }} | ||
uses: ntsd/auto-request-changes-action@v3 | ||
with: | ||
github-token: "${{ secrets.GITHUB_TOKEN }}" | ||
review-message: "Fix Luau-lsp errors" | ||
|
||
- name: Send mail | ||
if: ${{ failure() }} | ||
|