-
Notifications
You must be signed in to change notification settings - Fork 2
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 #1 from nascarsayan/main
Add lua implementation for sqids
- Loading branch information
Showing
11 changed files
with
1,471 additions
and
5 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,45 @@ | ||
name: Busted | ||
|
||
on: [ push, pull_request ] | ||
|
||
jobs: | ||
|
||
busted: | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
luaVersion: [ "5.4" ] | ||
runs-on: ubuntu-22.04 | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
|
||
- name: Setup 'lua' | ||
uses: leafo/gh-actions-lua@v9 | ||
with: | ||
luaVersion: ${{ matrix.luaVersion }} | ||
|
||
- name: Setup 'luarocks' | ||
uses: leafo/gh-actions-luarocks@v4 | ||
|
||
- name: Setup dependencies | ||
run: | | ||
luarocks install --deps-only sqids-lua-*.rockspec | ||
luarocks install busted | ||
luarocks install luacov | ||
luarocks install luacov-coveralls | ||
- name: Build 'sqids' | ||
run: | | ||
luarocks make | ||
- name: Run 'busted' | ||
# disable project-local path prefixes to force use of system installation | ||
run: busted --coverage --output=gtest -Xoutput --color | ||
|
||
- name: Report test coverage | ||
if: ${{ success() }} | ||
continue-on-error: true | ||
run: luacov-coveralls -i sqids.lua | ||
env: | ||
COVERALLS_REPO_TOKEN: ${{ github.token }} |
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,7 @@ | ||
/luarocks | ||
/lua | ||
/lua_modules | ||
/.luarocks | ||
/luacov.stats.out | ||
/luacov.report.out | ||
*.rock |
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,11 @@ | ||
all: build | ||
|
||
build: | ||
luarocks make | ||
|
||
publish: | ||
luarocks pack sqids-lua | ||
luarocks upload --api-key=${LUAROCKS_API_KEY} sqids-lua-*.rockspec | ||
|
||
clean: | ||
rm -rf sqids-lua-*.rock |
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
Oops, something went wrong.