Skip to content

locheck: add support for linux. (#56) #185

locheck: add support for linux. (#56)

locheck: add support for linux. (#56) #185

Workflow file for this run

name: Tests
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
build:
runs-on: macos-latest
steps:
- uses: actions/checkout@v2
# uncomment to pin swift version, but it takes several minutes.
#- uses: fwal/setup-swift@v1
# with:
# swift-version: "5.6"
- name: Cache SwiftPM
uses: actions/cache@v1
with:
path: .build
key: ${{ runner.os }}-swiftpm-deps-${{ github.workspace }}-${{ hashFiles('Package.resolved') }}
restore-keys: |
${{ runner.os }}-swiftpm-deps-${{ github.workspace }}
- name: Swift Version
run: swift --version
- name: Build
run: swift build
- name: Run tests
run: swift test