Skip to content

Update Test and Add Release Workflows (#27) #2

Update Test and Add Release Workflows (#27)

Update Test and Add Release Workflows (#27) #2

Workflow file for this run

name: Test
on:
workflow_call:
workflow_dispatch:
push:
branches: [ main ]
pull_request:
types:
- opened
- reopened
- synchronize
- ready_for_review
jobs:
unit_tests:
name: Test
runs-on: macos-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Cache dependencies
uses: actions/cache@v4
with:
path: .build
key: ${{ runner.os }}-spm-${{ hashFiles('**/Package.resolved') }}
restore-keys: |
${{ runner.os }}-spm-
- name: Build
run: swift build
- name: Run tests
run: swift test