Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
itschip committed Jun 4, 2021
2 parents c48b733 + ebe8c67 commit 99fa476
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 12 deletions.
25 changes: 14 additions & 11 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: Test Suite

on: [push]
on: [push, pull_request]

jobs:
nui_preformatting_tests:
Expand All @@ -13,11 +13,6 @@ jobs:
steps:
- name: Checkout
uses: actions/checkout@v2
with:
# Make sure the actual branch is checked out when running on pull requests
ref: ${{ github.head_ref }}
# This is important to fetch the changes to the previous commit
fetch-depth: 0
- name: Get yarn cache directory path
id: yarn-cache-dir-path
run: echo "::set-output name=dir::$(yarn config get cacheFolder)"
Expand Down Expand Up @@ -49,11 +44,6 @@ jobs:
steps:
- name: Checkout
uses: actions/checkout@v2
with:
# Make sure the actual branch is checked out when running on pull requests
ref: ${{ github.head_ref }}
# This is important to fetch the changes to the previous commit
fetch-depth: 0
- name: Use Node.js
uses: actions/setup-node@v1
with:
Expand All @@ -64,3 +54,16 @@ jobs:
run: yarn test
env:
CI: true

lint:
name: Lint Lua scripts
runs-on: ubuntu-latest
defaults:
run:
working-directory: resources

steps:
- name: Checkout
uses: actions/checkout@v2
- name: Lint
uses: GoatG33k/fivem-lua-lint-action@v1
2 changes: 1 addition & 1 deletion resources/client/cl_controls.lua
Original file line number Diff line number Diff line change
Expand Up @@ -41,4 +41,4 @@ end)

AddEventHandler('npwd:disableControlActions', function(bool)
disableKeys = bool
end)
end)

0 comments on commit 99fa476

Please sign in to comment.