Skip to content
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
33 changes: 33 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: CI

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

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

jobs:
build-and-test:
name: Build & Test
runs-on: macos-14
strategy:
matrix:
xcode: ['15.4']
steps:
- uses: actions/checkout@v4

- name: Select Xcode ${{ matrix.xcode }}
run: sudo xcode-select -s /Applications/Xcode_${{ matrix.xcode }}.app

- name: Install Lua
run: brew install lua

- name: Build
run: swift build -v

- name: Run Tests
run: swift test -v
1 change: 1 addition & 0 deletions Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ let package = Package(
name: "LuaKitTests",
dependencies: [
"LuaKit",
"LuaKitMacros",
.product(name: "SwiftSyntaxMacrosTestSupport", package: "swift-syntax")
]),
.macro(name: "LuaKitMacros",
Expand Down
2 changes: 1 addition & 1 deletion Sources/LuaKitDemo/main.swift
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,6 @@ do {
"""#

// Execute Lua code using the Lua instance
lua.execute(source: source)
try lua.execute(source: source)
}
}
14 changes: 14 additions & 0 deletions Tests/LuaDemoTests/LuaDemoTests.swift
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
//
// LuaDemoTests.swift
// Placeholder for demo integration tests.
// Created by William Laverty on 14/12/2023.
//

import XCTest

final class LuaDemoTests: XCTestCase {
func testDemoTargetBuilds() throws {
// Validates the demo target compiles successfully
XCTAssertTrue(true)
}
}
16 changes: 0 additions & 16 deletions Tests/LuaDemoTests/LuaIntegrationTest.swift

This file was deleted.

Loading