forked from DawnAngel/lua-nats
-
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.
Merge pull request #2 from PowerDNS/gh-actions
Add test and luacheck workflows in GH actions
- Loading branch information
Showing
7 changed files
with
48 additions
and
3 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 |
---|---|---|
@@ -0,0 +1,16 @@ | ||
name: Luacheck | ||
|
||
on: | ||
push: | ||
pull_request: | ||
|
||
jobs: | ||
luacheck: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
- name: Luacheck linter | ||
uses: lunarmodules/luacheck@v1 | ||
with: | ||
args: src/ |
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 |
---|---|---|
@@ -0,0 +1,24 @@ | ||
name: Test features | ||
|
||
on: | ||
push: | ||
pull_request: | ||
|
||
jobs: | ||
runner-job: | ||
runs-on: ubuntu-latest | ||
services: | ||
nats: | ||
image: nats | ||
ports: | ||
- "4222:4222" | ||
steps: | ||
- name: Install Luarocks | ||
run: sudo apt-get update && sudo apt-get -y --no-install-recommends install luarocks | ||
- name: Install telescope | ||
run: sudo luarocks install telescope | ||
- uses: actions/checkout@v4 | ||
- name: Install deps | ||
run: sudo make deps | ||
- name: Test Features | ||
run: make test |
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 |
---|---|---|
@@ -0,0 +1,3 @@ | ||
globals = { | ||
"unique_id" | ||
} |
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,5 @@ | ||
test: | ||
tsc -f tests/*.lua | ||
make -C tests test | ||
|
||
test-deps: | ||
luarocks install telescope | ||
|
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 |
---|---|---|
|
@@ -4,4 +4,4 @@ services: | |
nats: | ||
image: nats | ||
ports: | ||
- "4222:4222" | ||
- "4222:4222" |
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
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 |
---|---|---|
@@ -0,0 +1,2 @@ | ||
test: | ||
tsc -f *.lua |