aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.github/workflows/main.yml38
1 files changed, 38 insertions, 0 deletions
diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml
new file mode 100644
index 0000000..744e3cd
--- /dev/null
+++ b/.github/workflows/main.yml
@@ -0,0 +1,38 @@
1name: Main
2on:
3 push:
4 paths-ignore:
5 - 'pack'
6 - '**.md'
7 - '.gitignore'
8 pull_request:
9 paths-ignore:
10 - 'pack'
11 - '**.md'
12 - '.gitignore'
13jobs:
14 lint:
15 name: Lint
16 runs-on: ubuntu-20.04
17 steps:
18 - name: Clone repo
19 uses: actions/checkout@v3
20
21 - name: Luacheck
22 uses: nebularg/actions-luacheck@v1
23 with:
24 files: .
25 annotate: warning
26
27 format:
28 name: Format
29 runs-on: ubuntu-20.04
30 steps:
31 - name: Clone repo
32 uses: actions/checkout@v3
33
34 - name: StyLua
35 uses: JohnnyMorganz/stylua-action@v1.1.1
36 with:
37 token: ${{ secrets.GITHUB_TOKEN }}
38 args: --color always --check .