forked from stencilproject/Stencil
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fork
- Loading branch information
Showing
140 changed files
with
10,568 additions
and
10,709 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
{ | ||
"name": "Stencil", | ||
"image": "swift:5.10", | ||
"features": { | ||
"ghcr.io/devcontainers/features/common-utils:2": { | ||
"installZsh": "false", | ||
"username": "vscode", | ||
"userUid": "1000", | ||
"userGid": "1000", | ||
"upgradePackages": "false" | ||
}, | ||
"ghcr.io/devcontainers/features/git:1": { | ||
"version": "os-provided", | ||
"ppa": "false" | ||
} | ||
}, | ||
"runArgs": [ | ||
"--cap-add=SYS_PTRACE", | ||
"--security-opt", | ||
"seccomp=unconfined" | ||
], | ||
// Configure tool-specific properties. | ||
"customizations": { | ||
// Configure properties specific to VS Code. | ||
"vscode": { | ||
// Set *default* container specific settings.json values on container create. | ||
"settings": { | ||
"lldb.library": "/usr/lib/liblldb.so" | ||
}, | ||
// Add the IDs of extensions you want installed when the container is created. | ||
"extensions": [ | ||
"sswg.swift-lang" | ||
] | ||
} | ||
}, | ||
// Use 'forwardPorts' to make a list of ports inside the container available locally. | ||
// "forwardPorts": [], | ||
|
||
// Use 'postCreateCommand' to run commands after the container is created. | ||
"postCreateCommand": "swift --version", | ||
|
||
// Set `remoteUser` to `root` to connect as root instead. More info: https://aka.ms/vscode-remote/containers/non-root. | ||
"remoteUser": "vscode" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
name: ci | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
pull_request: | ||
branches: | ||
- '*' | ||
workflow_dispatch: | ||
|
||
jobs: | ||
lint: | ||
runs-on: macos-14 | ||
environment: default | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: SwiftFormat version | ||
run: swiftformat --version | ||
- name: Format lint | ||
run: swiftformat --lint . | ||
- name: Install SwiftLint | ||
run: brew install swiftlint | ||
- name: SwiftLint version | ||
run: swiftlint --version | ||
- name: Lint | ||
run: swiftlint lint --quiet | ||
macos-test: | ||
runs-on: macos-14 | ||
environment: default | ||
strategy: | ||
matrix: | ||
xcode: ['15.4'] | ||
# Swift: 5.10 | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: Select Xcode ${{ matrix.xcode }} | ||
run: sudo xcode-select -s /Applications/Xcode_${{ matrix.xcode }}.app | ||
- name: Run Tests | ||
run: TEMP_DIR=${{ runner.temp }} swift test --enable-code-coverage | ||
linux-test: | ||
runs-on: ubuntu-latest | ||
environment: default | ||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: Run Tests | ||
run: TEMP_DIR=${{ runner.temp }} swift test |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
--extensionacl on-declarations | ||
--redundanttype explicit | ||
--swiftversion 5.10 | ||
--maxwidth 120 | ||
--header "{file}\nStencil\n\nCopyright (c) 2022, Kyle Fuller\nAll rights reserved.\n\nCopyright 2024 MFB Technologies, Inc.\n\nThis source code is licensed under the BSD-2-Clause License found in the\nLICENSE file in the root directory of this source tree."" | ||
--allman false | ||
--wraparguments before-first | ||
--wrapcollections before-first |
Oops, something went wrong.