Bump actions/cache from 3.3.2 to 3.3.3 #20
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Build and Test | |
on: | |
push: | |
branches: [ main ] | |
paths: | |
- 'Sources/**.swift' | |
- 'Tests/**.swift' | |
- 'Package.swift' | |
- '.github/workflows/build.yml' | |
pull_request: | |
paths: | |
- 'Sources/**.swift' | |
- 'Tests/**.swift' | |
- 'Package.swift' | |
- '.github/workflows/build.yml' | |
jobs: | |
build: | |
runs-on: macos-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Cache .build | |
uses: actions/cache@v3.3.3 | |
with: | |
path: .build | |
key: ${{ runner.os }}-spm-${{ hashFiles('**/Package.resolved') }} | |
restore-keys: | | |
${{ runner.os }}-spm- | |
- name: Build | |
run: swift build --build-tests --verbose | |
- name: Run tests | |
run: swift test --verbose --enable-code-coverage --parallel | xcpretty | |
- name: Generate coverage | |
run: ./.scripts/cov.sh |