Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 10 additions & 8 deletions .github/actions/publish_docc/action.yml
Original file line number Diff line number Diff line change
@@ -1,19 +1,16 @@
---
name: Build and Publish Documentation

inputs:
# The target's name which documentation is built for.
target:
required: true
type: string
# The output path for the documentation.
output_path:
required: true
type: string
# The hosting base path for the documentation.
hosting_base_path:
required: true
type: string
# The branch name to which documentation will be uploaded.
branch_name:
required: true
type: string
Expand Down Expand Up @@ -46,9 +43,12 @@ runs:
shell: bash
run: |
git fetch
git worktree add --checkout ${{ inputs.branch_name }} origin/${{ inputs.branch_name }}
git worktree add --checkout ${{ inputs.branch_name }} \
origin/${{ inputs.branch_name }}

git config --local user.email \
"github-actions[bot]@users.noreply.github.com"

git config --local user.email "github-actions[bot]@users.noreply.github.com"
git config --local user.name "github-actions[bot]"
git switch ${{ inputs.branch_name }}

Expand All @@ -59,12 +59,14 @@ runs:
git add ./${{ inputs.output_path }}

if [ -n "$(git status --porcelain)" ]; then
echo "Documentation changes found. Commiting the changes to the '${{ inputs.branch_name }}' branch and pushing to origin."
echo "Documentation changes found. \
Commiting the changes to the '${{ inputs.branch_name }}' \
branch and pushing to origin."
git commit -a -m "Generated ${{ inputs.target }} Swift DocC"
git push origin ${{ inputs.branch_name }}
else
# No changes found, nothing to commit.
echo "No documentation changes found."
fi

git worktree remove ${{ inputs.branch_name }}
git worktree remove ${{ inputs.branch_name }}
8 changes: 6 additions & 2 deletions .github/actions/upload_test_coverage_report/action.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
---
name: Upload Test Coverage Report

inputs:
Expand Down Expand Up @@ -30,9 +31,12 @@ runs:

- name: Convert the test report
run: |
xcresultparser -o cobertura "test_output/${{ inputs.filename }}.xcresult" > cobertura.xml
xcresultparser \
-o cobertura \
"test_output/${{ inputs.filename }}.xcresult" \
> cobertura.xml
shell: bash

- name: Upload coverage reports to Codecov
uses: codecov/codecov-action@v5.1.2
with:
Expand Down
20 changes: 20 additions & 0 deletions .github/workflows/yamllint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
name: 'Yamllint GitHub Actions'

on:
- pull_request

jobs:
yamllint:
name: 'Yamllint'
runs-on: ubuntu-latest
steps:
- name: 'Checkout'
uses: actions/checkout@master
- name: 'Yamllint'
uses: karancode/yamllint-github-action@master
with:
yamllint_file_or_dir: '.github/actions'
yamllint_strict: true
yamllint_comment: true
env:
GITHUB_ACCESS_TOKEN: ${{ secrets.GITHUB_TOKEN }}