Skip to content

Commit

Permalink
chore: add workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
vm-001 committed Dec 25, 2023
1 parent 3603290 commit 4b7978f
Show file tree
Hide file tree
Showing 4 changed files with 62 additions and 0 deletions.
6 changes: 6 additions & 0 deletions .busted
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
return {
default = {
verbose = true,
output = "gtest",
},
}
39 changes: 39 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
name: CI pipeline

on:
pull_request: {}
push:
branches:
- main


jobs:
test:
runs-on: ubuntu-latest

strategy:
fail-fast: false
matrix:
luaVersion: [ "5.2", "5.3", "5.4", "luajit-2.1.0-beta3", "luajit-openresty" ]

steps:
- uses: actions/checkout@v3

- uses: leafo/gh-actions-lua@v8
with:
luaVersion: ${{ matrix.luaVersion }}

- uses: leafo/gh-actions-luarocks@v4

- name: install dependencies
run: |
luarocks install busted
luarocks install luacov-coveralls
- name: build luarocks
run: |
make build
- name: run tests
run: |
busted --coverage
16 changes: 16 additions & 0 deletions .github/workflows/luacheck.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
name: Luacheck

on:
pull_request: {}
push:
branches:
- main

jobs:
luacheck:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Luacheck
uses: lunarmodules/luacheck@v1
1 change: 1 addition & 0 deletions .luacheckrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
unused_args = false

0 comments on commit 4b7978f

Please sign in to comment.