Skip to content

Commit

Permalink
Add CI
Browse files Browse the repository at this point in the history
  • Loading branch information
mtdowling committed Dec 9, 2024
1 parent a5a3d25 commit 7be1948
Show file tree
Hide file tree
Showing 3 changed files with 32 additions and 3 deletions.
31 changes: 31 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: ci

on:
pull_request:
workflow_dispatch:
push:
branches: [main]

jobs:
Test:
strategy:
matrix:
lua-version: ["5.4", "5.3", "5.2", "5.1", "luajit"]
os: ["ubuntu-latest"]
include:
- os: "macos-latest"
lua-version: "5.4"
- os: "windows-latest"
lua-version: "luajit"
runs-on: ${{ matrix.os }}

steps:
- uses: actions/checkout@master
- uses: hishamhm/gh-actions-lua@master
with:
luaVersion: ${{ matrix.lua-version }}
- uses: hishamhm/gh-actions-luarocks@master
- name: Test
run: |
make dev
make all
2 changes: 0 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
.PHONY: all dev gen check test

LUA := $(shell luarocks config lua_interpreter)

all: gen check test

dev:
Expand Down
2 changes: 1 addition & 1 deletion spec/emitter_spec.lua
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
local Emitter = require("Emitter")
local Emitter = require("emitter")

local Greet = {}
function Greet.new(name)
Expand Down

0 comments on commit 7be1948

Please sign in to comment.