Skip to content

locheck: add support for linux. #184

locheck: add support for linux.

locheck: add support for linux. #184

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