2024-04-26 06:45:04 +01:00
|
|
|
name: CI
|
|
|
|
|
|
|
|
on:
|
2024-04-26 07:00:49 +01:00
|
|
|
push:
|
|
|
|
pull_request:
|
|
|
|
workflow_dispatch:
|
2024-04-26 06:45:04 +01:00
|
|
|
|
|
|
|
defaults:
|
2024-04-26 07:00:49 +01:00
|
|
|
run:
|
|
|
|
shell: bash
|
2024-04-26 06:45:04 +01:00
|
|
|
|
|
|
|
jobs:
|
2024-04-26 07:00:49 +01:00
|
|
|
fmt:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
|
|
- name: Checkout repository
|
|
|
|
uses: actions/checkout@v4
|
|
|
|
|
|
|
|
- name: Install tooling
|
|
|
|
uses: ok-nick/setup-aftman@v0.4.2
|
|
|
|
with:
|
|
|
|
cache: true
|
|
|
|
|
|
|
|
- name: Check formatting
|
|
|
|
run: stylua -c -v .
|
|
|
|
|
|
|
|
lint:
|
|
|
|
needs: ["fmt"]
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
|
|
- name: Checkout repository
|
|
|
|
uses: actions/checkout@v4
|
|
|
|
|
|
|
|
- name: Install dependencies
|
|
|
|
run: wally install
|
|
|
|
|
|
|
|
- name: Install tooling
|
|
|
|
uses: ok-nick/setup-aftman@v0.4.2
|
|
|
|
with:
|
|
|
|
cache: true
|
|
|
|
|
|
|
|
- name: Analyze
|
|
|
|
run: luau-lsp analyze --ignore="Packages/**" --settings=".vscode/settings.json" lib/ examples/ mod.luau
|
|
|
|
|
|
|
|
- name: lint
|
|
|
|
run: selene .
|