Skip to content

Commit

Permalink
Fork
Browse files Browse the repository at this point in the history
fork
  • Loading branch information
roanutil committed May 17, 2024
1 parent 1aeeced commit 1176b89
Show file tree
Hide file tree
Showing 140 changed files with 10,568 additions and 10,709 deletions.
44 changes: 44 additions & 0 deletions .devcontainer/devcontainer.json
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"
}
48 changes: 48 additions & 0 deletions .github/workflows/ci.yml
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
25 changes: 0 additions & 25 deletions .github/workflows/danger.yml

This file was deleted.

23 changes: 0 additions & 23 deletions .github/workflows/lint-cocoapods.yml

This file was deleted.

23 changes: 0 additions & 23 deletions .github/workflows/release-check-versions.yml

This file was deleted.

26 changes: 0 additions & 26 deletions .github/workflows/swiftlint.yml

This file was deleted.

44 changes: 0 additions & 44 deletions .github/workflows/tag-publish.yml

This file was deleted.

66 changes: 0 additions & 66 deletions .github/workflows/test-spm.yml

This file was deleted.

8 changes: 8 additions & 0 deletions .swiftformat
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
Loading

0 comments on commit 1176b89

Please sign in to comment.