ci: add CI for YAML files #24
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
name: ci | |
on: | |
push: | |
branches: ["main"] | |
pull_request: | |
branches: ["main"] | |
jobs: | |
lint: | |
runs-on: ubuntu-latest | |
container: swift:6.0 | |
steps: | |
- uses: actions/checkout@v4 | |
- run: swift format lint -rsp . | |
yamllint: | |
runs-on: ubuntu-latest | |
container: alpine:3.21 | |
steps: | |
- uses: actions/checkout@v4 | |
- run: apk update && apk add yamllint | |
- run: yamllint --version | |
- run: yamllint --strict --config-file .yamllint.yml . |