Skip to content

setup ci

setup ci #1

Workflow file for this run

name: CI
on:
push:
branches: ["master"]
pull_request:
branches: ["master"]
jobs:
lint:
name: Swift Lint
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Check swift codestyle
uses: norio-nomura/[email protected]
with:
args: lint --config .swiftlint.yml --strict
test:
name: Build and Test
runs-on: ubuntu-latest
steps:
- name: Checkout Code
uses: actions/checkout@v4
- name: Setup Swift
uses: swift-actions/setup-swift@v2
with:
swift-version: "5.10"
- name: Run Script
run: |
chmod +x ./scripts/build-and-test.sh
./scripts/build-and-test.sh