Skip to content

Commit

Permalink
test.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
omochi committed Apr 15, 2024
1 parent 7c254b6 commit c163402
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 1 deletion.
26 changes: 26 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: test
on:
push:
branches:
- main
pull_request:
paths:
- .github/workflows/test.yml
- bin/test
- Sources
- Tests
- Package.resolved
- Package.swift

jobs:
test-linux:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: vapor/[email protected]
with:
toolchain: 5.10
- run: swift package resolve
- run: swift build
- run: swift build --build-tests
- run: swift test
3 changes: 2 additions & 1 deletion Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,8 @@ let javaScriptKitDependency: Package.Dependency = usesLocalJavaScriptKit ?
.package(url: "https://github.com/swiftwasm/JavaScriptKit", branch: "main")

let javaScriptKitMockPlatforms: [Platform] = [
usesJavaScriptKitMockOnMac ? .macOS : nil
usesJavaScriptKitMockOnMac ? .macOS : nil,
Platform.linux
].compacted()

let javaScriptKitRealPlatforms: [Platform] = javaScriptKitMockPlatforms.inverted()
Expand Down

0 comments on commit c163402

Please sign in to comment.