Skip to content

Convert to luatest. (#33) #84

Convert to luatest. (#33)

Convert to luatest. (#33) #84

Workflow file for this run

name: test
on: [push]
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
- uses: leafo/gh-actions-lua@v8.0.0
with:
luaVersion: "5.4"
- uses: leafo/gh-actions-luarocks@v4.0.0
- name: Cache Lua packages
uses: actions/cache@v2
with:
path: ${{ github.workspace }}/.luarocks
key: lua-${{ hashFiles('atlas-dev-1.rockspec') }}
- name: set path
run: echo "${{ github.workspace }}/.luarocks/bin" >> $GITHUB_PATH
- name: build
run: make build
- name: style
run: "find lua tests -name '*.lua' -print0 | xargs -0 lua-format --check"
- name: test
run: luatest --cov lua
env:
ATLAS_CONFIG: tests.config