Skip to content

[NFY] Use snafu for CLI error handling #284

[NFY] Use snafu for CLI error handling

[NFY] Use snafu for CLI error handling #284

Workflow file for this run

name: Busted
on: [ push, pull_request ]
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
busted:
strategy:
fail-fast: false
matrix:
luaVersion: [ "5.4", "5.3", "5.2", "5.1", "luajit", "luajit-openresty" ]
runs-on: ubuntu-22.04
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Install lua
# uses: leafo/gh-actions-lua@v10
uses: hishamhm/gh-actions-lua@master
with:
luaVersion: ${{ matrix.luaVersion }}
- name: Install luarocks
# uses: leafo/gh-actions-luarocks@v4
uses: hishamhm/gh-actions-luarocks@update-luajit
- name: Install Rust
uses: actions-rs/toolchain@v1
- name: Cache Rust
uses: Swatinem/rust-cache@v2
- name: Setup dependencies
run: |
luarocks install --only-deps -- decasify-dev-1.rockspec
luarocks install busted
luarocks install luacov-coveralls
- name: Build and install Lua module locally
run: |
luarocks make
- name: Run busted tests
run: busted -c -v
- name: Report test coverage
if: success()
continue-on-error: true
run: luacov-coveralls -i cldr -e .luarocks
env:
COVERALLS_REPO_TOKEN: ${{ github.token }}