🎨 Format YAML files

This commit is contained in:
Ben Chatelain 2024-02-18 12:13:42 -07:00
parent 0806fbad54
commit 8eab75ed9a
9 changed files with 47 additions and 66 deletions

View file

@ -1,4 +1,5 @@
# https://docs.github.com/en/code-security/supply-chain-security/keeping-your-dependencies-updated-automatically/configuration-options-for-dependency-updates
---
version: 2
updates:
- package-ecosystem: "github-actions"

11
.github/release.yml vendored
View file

@ -1,12 +1,13 @@
# https://docs.github.com/en/repositories/releasing-projects-on-github/automatically-generated-release-notes
---
changelog:
categories:
- title: '🚀 Features'
- title: "🚀 Features"
labels:
- '🆕 feature request'
- title: '🐛 Bug Fixes'
- "🆕 feature request"
- title: "🐛 Bug Fixes"
labels:
- '🐛 bug'
- "🐛 bug"
- title: Changes
labels:
- '*'
- "*"

View file

@ -2,20 +2,16 @@
# .github/workflows/danger.yml
#
# https://docs.github.com/en/actions/reference/environment-variables#default-environment-variables
---
name: danger
on:
pull_request:
branches: [ main ]
branches: [main]
jobs:
danger:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Danger
# https://github.com/orgs/danger/packages/container/package/danger-swift
uses: docker://ghcr.io/danger/danger-swift:3.18.0

View file

@ -2,23 +2,19 @@
# .github/workflows/pr-checks.yml
#
# https://docs.github.com/en/actions/reference/environment-variables#default-environment-variables
---
name: pr-checks
on:
pull_request:
branches: [ main ]
branches: [main]
push:
branches: [ main ]
branches: [main]
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
build-test:
runs-on: macos-14
defaults:
run:
# Prefixes all `run` commands with the following command to force them to run outside Rosetta.
@ -26,21 +22,16 @@ jobs:
# https://github.com/rolpdog/cffi-mirror/blob/release-1.15/.github/workflows/ci.yaml#L81-L141
# https://github.com/actions/virtual-environments/issues/2187#issuecomment-790507204
shell: arch -arm64 bash --noprofile --norc -eo pipefail {0}
steps:
- uses: actions/checkout@v4
with:
# A fetch-depth of 0 includes all history and tags for script/version
fetch-depth: 0
- name: Bootstrap
run: script/bootstrap
- name: Build
run: script/build
- name: Test
run: script/test
- name: Lint
run: script/lint

View file

@ -1,22 +1,18 @@
#
# .github/workflows/release.yml
#
---
name: release
on:
release:
types: [published]
jobs:
release:
runs-on: macos-14
steps:
- uses: actions/checkout@v4
with:
# A fetch-depth of 0 includes all history and tags for script/version
fetch-depth: 0
- name: Bootstrap
run: script/bootstrap

View file

@ -6,15 +6,11 @@
#
---
fail_on_violations: false
erblint:
enabled: false
rubocop:
enabled: false
shellcheck:
enabled: true
swiftlint:
enabled: false

View file

@ -1,2 +1,3 @@
---
retain_public: true
strict: true

View file

@ -4,12 +4,10 @@
#
# https://github.com/realm/SwiftLint#configuration
#
---
disabled_rules:
- trailing_comma
- trailing_comma
excluded:
- docs
- docs
opening_brace:
allow_multiline_func: true

View file

@ -4,8 +4,9 @@
#
# https://github.com/realm/SwiftLint#configuration
#
---
disabled_rules:
- force_cast
- force_try
- function_body_length
- force_cast
- force_try
- function_body_length