Safrole #85
Workflow file for this run
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: ["master"] | |
pull_request: | |
branches: ["master"] | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.ref }} | |
cancel-in-progress: true | |
jobs: | |
lint: | |
name: Swift Lint | |
runs-on: [self-hosted, linux] | |
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: [self-hosted, linux] | |
steps: | |
- name: Checkout Code | |
uses: actions/checkout@v4 | |
with: | |
submodules: recursive | |
- uses: actions/cache@v4 | |
with: | |
path: '**/.build' | |
key: ${{ runner.os }}-spm-${{ hashFiles('**/Package.resolved') }} | |
restore-keys: | | |
${{ runner.os }}-spm- | |
- name: Setup Swift | |
uses: SwiftyLab/setup-swift@latest | |
with: | |
swift-version: '6.0' | |
development: true | |
- name: Build | |
run: make build | |
- name: Test | |
run: make test |