Support softbreaks, i.e., non-semantic line breaks. #157
Workflow file for this run
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
name: Run luacheck and unit tests | |
on: | |
push: | |
branches: | |
- master | |
pull_request: | |
workflow_dispatch: | |
jobs: | |
luacheck: | |
name: Run luacheck | |
runs-on: ubuntu-latest | |
container: | |
image: ubuntu:latest | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v2 | |
- name: Install additional packages | |
run: | | |
set -ex | |
apt -qy update | |
apt -qy install lua-check | |
- name: Run luacheck | |
run: luacheck lunamark/ | |
test: | |
name: Run unit tests | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v2 | |
- name: Build docker image | |
run: | | |
set -ex | |
export DOCKER_BUILDKIT=1 | |
docker build -t jgm/lunamark . | |
- name: Run unit tests | |
run: | | |
docker run --rm -v "$PWD":/mnt -w /mnt --entrypoint /bin/bash jgm/lunamark -c 'set -e; eval "$(luarocks path)"; make testdeps; make test' |