name: Test on: pull_request: paths: - '.github/workflows/test.yml' - '**/*.swift' jobs: SwiftLint: runs-on: macos-latest steps: - uses: actions/checkout@v1 - name: Cache Swift packages uses: actions/cache@v2 with: path: | .build/checkouts .build/repositories .build/workspace-state.json key: ${{ runner.os }}-${{ hashFiles('Package.resolved') }} - name: Build run: swift build - name: Run tests run: swift test