Skip to content

Add format command in Makefile #141

Add format command in Makefile

Add format command in Makefile #141

Workflow file for this run

name: CI
on:
push:
branches:
- develop
- main
pull_request:
branches:
- develop
- main
env:
SLACK_CHANNEL: ${{ secrets.SLACK_CHANNEL }}
SLACK_SIGNING_SECRET: ${{ secrets.SLACK_SIGNING_SECRET }}
SLACK_TOKEN: ${{ secrets.SLACK_TOKEN }}
jobs:
lint:
runs-on: ubuntu-latest
steps:
- name: Check out
uses: actions/checkout@v4
with:
submodules: true
- name: Lint
uses: dstmodders/action@main
with:
ignore-set-output: true
luacheck: true
prettier: true
slack: true
stylua: true
test:
runs-on: ubuntu-latest
steps:
- name: Check out
uses: actions/checkout@v4
with:
submodules: true
- name: Test
uses: dstmodders/action@main
with:
busted: true
ignore-set-output: true
slack: true
- name: Test with coverage
run: |
docker run --rm -t \
-v "$(pwd):/opt/mod-keep-following/" \
-w /opt/mod-keep-following/ \
-u "$(id -u):$(id -g)" \
dstmodders/dst-mod:latest \
/bin/bash -c 'busted . && luacov -r lcov && cp luacov.report.out lcov.info'
- name: Upload coverage to Codecov
if: ${{ !env.ACT && success() }}
uses: codecov/codecov-action@v4
with:
token: ${{ secrets.CODECOV_TOKEN }}