Skip to content

Commit

Permalink
GitHub Actions
Browse files Browse the repository at this point in the history
  • Loading branch information
Sir Mallard committed Jul 24, 2024
1 parent 40b9558 commit 4ca5a2b
Show file tree
Hide file tree
Showing 3 changed files with 84 additions and 28 deletions.
31 changes: 31 additions & 0 deletions .github/workflows/check.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: "Formatter and Linter"

on:
workflow_dispatch:
push:
branches:
- main
pull_request:

jobs:
lint:
name: Lint
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: AlejandroSuero/[email protected]
with:
version: 0.27.1
token: ${{ secrets.GITHUB_TOKEN }}
args: --quiet .

format:
name: Format
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: JohnnyMorganz/stylua-action@v4
with:
version: 0.20.0
token: ${{ secrets.GITHUB_TOKEN }}
args: --check .
53 changes: 53 additions & 0 deletions testez.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
---
globals:
FIXME:
args:
- required: false
type: string
FOCUS:
args: []
SKIP:
args: []
afterAll:
args:
- type: function
afterEach:
args:
- type: function
beforeAll:
args:
- type: function
beforeEach:
args:
- type: function
describe:
args:
- type: string
- type: function
describeFOCUS:
args:
- type: string
- type: function
describeSKIP:
args:
- type: string
- type: function
expect:
args:
- type: any
it:
args:
- type: string
- type: function
itFIXME:
args:
- type: string
- type: function
itFOCUS:
args:
- type: string
- type: function
itSKIP:
args:
- type: string
- type: function
28 changes: 0 additions & 28 deletions tests/State.spec.lua
Original file line number Diff line number Diff line change
@@ -1,33 +1,5 @@
local ReplicatedStorage = game:GetService("ReplicatedStorage")

type Expectation = {
to: Expectation,
be: Expectation,
been: Expectation,
have: Expectation,
was: Expectation,
at: Expectation,

never: Expectation,

a: (typeName: string) -> Expectation,
an: (typeName: string) -> Expectation,
ok: () -> Expectation,
equal: (otherValue: any) -> Expectation,
throw: (message: string) -> Expectation,
near: (otherValue: number, limit: number?) -> Expectation,
}

-- this will error and there is nothing I can do about it.
describe = describe :: (phrase: string, callback: () -> ()) -> ()
it = it :: (phrase: string, callback: () -> ()) -> ()
expect = expect :: (any) -> Expectation

beforeAll = beforeAll :: (callback: () -> ()) -> ()
afterAll = afterAll :: (callback: () -> ()) -> ()
beforeEach = beforeEach :: (callback: () -> ()) -> ()
afterEach = afterEach :: (callback: () -> ()) -> ()

return function()
local Iris = require(ReplicatedStorage.Iris)

Expand Down

0 comments on commit 4ca5a2b

Please sign in to comment.