ci: add CI

This commit is contained in:
Kenta Kubo 2025-04-06 05:53:45 +09:00
parent 83533600ad
commit dcb6962205
No known key found for this signature in database
GPG key ID: 3D79E20285C94BE8

21
.github/workflows/ci.yml vendored Normal file
View file

@ -0,0 +1,21 @@
name: ci
on:
push:
branches: ["main"]
pull_request:
branches: ["main"]
jobs:
lint:
runs-on: ubuntu-latest
container: swift:6.1
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 .