Skip to content

Updates to the tests to target the commonly used versions #9

Updates to the tests to target the commonly used versions

Updates to the tests to target the commonly used versions #9

Workflow file for this run

name: Pull Request Build and Test

Check failure on line 1 in .github/workflows/pull-request.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/pull-request.yml

Invalid workflow file

(Line: 18, Col: 17): Expected format {org}/{repo}[/path]@ref. Actual 'swift-actions/setup-swift'
on:
push:
branches: [main]
pull_request:
branches: [main]
jobs:
build:
name: Swift ${{ matrix.swift }} on ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, macos-latest]
swift: ["5.10", "6.0"]
runs-on: ${{ matrix.os }}
steps:
- uses: swift-actions/setup-swift
with:
swift-version: ${{ matrix.swift }}
- uses: actions/checkout@v5
- name: Build
run: swift build
- name: Run tests
run: swift test
swift-lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Run SwiftLint
uses: norio-nomura/action-swiftlint@3.2.1
# TODO: enable these settings:
# env:
# DIFF_BASE: ${{ github.base_ref }}
# with:
# args: --strict