🎨 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 # https://docs.github.com/en/code-security/supply-chain-security/keeping-your-dependencies-updated-automatically/configuration-options-for-dependency-updates
---
version: 2 version: 2
updates: updates:
- package-ecosystem: "github-actions" - 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 # https://docs.github.com/en/repositories/releasing-projects-on-github/automatically-generated-release-notes
---
changelog: changelog:
categories: categories:
- title: '🚀 Features' - title: "🚀 Features"
labels: labels:
- '🆕 feature request' - "🆕 feature request"
- title: '🐛 Bug Fixes' - title: "🐛 Bug Fixes"
labels: labels:
- '🐛 bug' - "🐛 bug"
- title: Changes - title: Changes
labels: labels:
- '*' - "*"

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

@ -4,6 +4,7 @@
# #
# https://github.com/realm/SwiftLint#configuration # https://github.com/realm/SwiftLint#configuration
# #
--- ---
disabled_rules: disabled_rules:
- force_cast - force_cast