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.
The workflow is currently more limited than the existing one that used Travis CI and tested various versions of Lua, but at least it works and will be executed for all pushed commits and pull requests from now on.
- Loading branch information
Showing
4 changed files
with
28 additions
and
2 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,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 |
---|---|---|
@@ -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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
test: | ||
tsc -f *.lua |