Skip to content

Remove unneeded tests. #33

Remove unneeded tests.

Remove unneeded tests. #33

name: "\U0001F6A7 Swift Test| WrkstrmFoundationTests"
on:
pull_request:
branches:
- main
push:
branches:
- main
paths:
- '**'
jobs:
swift-test:
strategy:
matrix:
os:
- macos-13
- ubuntu-latest
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
with:
submodules: recursive
- name: Cache SPM dependencies
id: cache-spm
uses: actions/cache@v3
with:
path: apple/WrkstrmFoundation/.build
key: ${{ runner.os }}-spm-WrkstrmFoundation-${{ hashFiles('**/Package.resolved')
}}
restore-keys: ${{ runner.os }}-spm-WrkstrmFoundation-
- name: Check Cache
run: 'echo ''Cache hit: ${{ steps.cache-spm.outputs.cache-hit }}'''
- name: Setup Xcode
uses: maxim-lobanov/setup-xcode@v1
if: matrix.os == 'macos-latest' || matrix.os == 'macos-13' || matrix.os == 'self-hosted'
with:
xcode-version: '15.0'
- name: Swift Describe
if: steps.cache-spm.outputs.cache-hit != 'true'
run: swift package describe --type json
- name: Set CI Style
run: echo "SPM_CI_USE_LOCAL_DEPS=false" >> $GITHUB_ENV
- name: Check CI Style
run: '[ -z "${SPM_CI_USE_LOCAL_DEPS}" ] && echo "SPM_CI_LOCAL_DEPS is not set"
|| echo "SPM_CI_USE_LOCAL_DEPS is set to ${SPM_CI_USE_LOCAL_DEPS}"'
env:
SPM_CI_USE_LOCAL_DEPS: ${{ env.SPM_CI_USE_LOCAL_DEPS }}
- name: Swift Test
run: swift test --enable-code-coverage --parallel --filter WrkstrmFoundationTests