Skip to content

project: use sake itself in GitHub Actions workflows #72

project: use sake itself in GitHub Actions workflows

project: use sake itself in GitHub Actions workflows #72

Workflow file for this run

name: Checks
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
build-and-test:
name: tests (Swift ${{ matrix.swift }}) on ${{ matrix.os }}
strategy:
matrix:
os: [macos-latest, ubuntu-latest]
swift: ["5.10", "6.0"]
runs-on: ${{ matrix.os }}
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Setup Sake
uses: kattouf/sake-action@main
with:
swift-version: ${{ matrix.swift }}
- name: Run unit tests
run: sake unit_tests
- name: Run integration tests
run: sake integration_tests
lint:
runs-on: macos-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Setup Sake
uses: kattouf/sake-action@main
- name: Run lint
run: |
sake lint