Skip to content
This repository has been archived by the owner on Jul 16, 2024. It is now read-only.

Implement workflow for linting and checking formatting #81

Merged
merged 6 commits into from
Dec 21, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
38 changes: 38 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
name: CI

on:
push:
branches:
- main

pull_request:
branches:
- main

jobs:
lint:
name: Lint with Selene
runs-on: ubuntu-latest

steps:
- name: Checkout Project
uses: actions/checkout@v3

- name: Setup Aftman
uses: ok-nick/[email protected]

- name: Selene
run: selene lib example tests
format:
name: Check StyLua
runs-on: ubuntu-latest

steps:
- name: Checkout Project
uses: actions/checkout@v3

- name: Setup Aftman
uses: ok-nick/[email protected]

- name: StyLua
run: stylua lib example tests --check
4 changes: 3 additions & 1 deletion aftman.toml
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
[tools]
wally = "upliftgames/[email protected]"
rojo = "rojo-rbx/[email protected]"
rojo = "rojo-rbx/[email protected]"
stylua = "johnnymorganz/[email protected]"
selene = "kampfkarren/[email protected]"
5 changes: 4 additions & 1 deletion selene.toml
Original file line number Diff line number Diff line change
@@ -1 +1,4 @@
std = "roblox+testez"
std = "roblox+testez"

[rules]
shadowing = "allow"
Loading