MakeColors/.github/workflows/test.yml

28 lines
604 B
YAML
Raw Normal View History

2020-12-30 14:10:46 +01:00
name: Test
on:
pull_request:
paths:
- '.github/workflows/test.yml'
- '**/*.swift'
jobs:
SwiftLint:
runs-on: macos-latest
steps:
- uses: actions/checkout@v1
2020-12-30 14:22:56 +01:00
- name: Cache Swift packages
uses: actions/cache@v2
env:
cache-name: cache-swift-packages
with:
path:
- .build/checkouts
- .build/repositories
- .build/workspace-state.json
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('Package.resolved') }}
2020-12-30 14:10:46 +01:00
- name: Run tests
run: swift test