Merge pull request #215 from ios-osushi/feature/122_20241028 #659
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 ] | |
permissions: | |
contents: read | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: swift-actions/setup-swift@v2 | |
with: | |
swift-version: "5.10.1" | |
- name: Build | |
run: | | |
swift --version | |
swift package --version | |
swift build -v | |
generate-website: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: swift-actions/setup-swift@v2 | |
with: | |
swift-version: "5.10.1" | |
- name: Setup | |
run: make setup | |
- name: Generate the website | |
run: make generate | |
textlint: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-node@v4 | |
with: | |
node-version: 20 | |
cache: 'npm' | |
- run: npm install | |
- run: npm run lint |