Skip to content

ci: add format check with StyLua #3

ci: add format check with StyLua

ci: add format check with StyLua #3

Workflow file for this run

name: CI
on:
push:
branches:
- 'main'
paths:
- '**.yml'
- '**.lua'
tags:
- '[0-9]+.[0-9]+.[0-9]+'
pull_request:
jobs:
lint:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
show-progress: false
- name: Format
uses: JohnnyMorganz/stylua-action@v4
with:
token: ${{ secrets.GITHUB_TOKEN }}
version: latest
args: --check .
- name: Lint
uses: nebularg/actions-luacheck@v1
with:
annotate: warning
args: --no-color
release:
runs-on: ubuntu-latest
if: github.ref_type == 'tag'
needs: lint
steps:
- name: Checkout
uses: actions/checkout@v4
with:
show-progress: false
- name: Package and Release
uses: BigWigsMods/packager@v2
env:
CF_API_KEY: ${{ secrets.CF_API_KEY }}
WAGO_API_TOKEN: ${{ secrets.WAGO_API_TOKEN }}
WOWI_API_TOKEN: ${{ secrets.WOWI_API_TOKEN }}
GITHUB_OAUTH: ${{ secrets.GITHUB_TOKEN }}