Skip to content

Commit

Permalink
Check CI stuff.
Browse files Browse the repository at this point in the history
  • Loading branch information
rismay committed Nov 13, 2023
1 parent a99d6bc commit 07a2a41
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 10 deletions.
19 changes: 12 additions & 7 deletions .github/workflows/wrkstrm-color-swift.yml
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
name: "\U0001F3CE️ Swift Build| WrkstrmColor"
on:
pull_request:
branches:
- main
push:
branches:
- main
paths:
- '**'
pull_request:
branches:
- main
jobs:
swift-build:
strategy:
Expand All @@ -20,15 +20,15 @@ jobs:
- uses: actions/checkout@v4
with:
submodules: recursive
- name: Cache Swift PM dependencies
- name: Cache SPM dependencies
id: cache-spm
uses: actions/cache@v3
with:
path: apple/WrkstrmColor/.build
restore-keys: ${{ runner.os }}-spm-WrkstrmColor-
key: ${{ runner.os }}-spm-WrkstrmColor-${{ hashFiles('**/Package.resolved')
}}
restore-keys: ${{ runner.os }}-spm-WrkstrmColor-
path: apple/WrkstrmColor/.build
- name: Check cache
- name: Check Cache
run: 'echo ''Cache hit: ${{ steps.cache-spm.outputs.cache-hit }}'''
- name: Setup Xcode
uses: maxim-lobanov/setup-xcode@v1
Expand All @@ -38,5 +38,10 @@ jobs:
- name: Swift Describe
if: steps.cache-spm.outputs.cache-hit != 'true'
run: swift package describe --type json
- 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 Build
run: swift build --target WrkstrmColor
11 changes: 8 additions & 3 deletions .github/workflows/wrkstrm-color-tests-swift.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,15 +20,15 @@ jobs:
- uses: actions/checkout@v4
with:
submodules: recursive
- name: Cache Swift PM dependencies
- name: Cache SPM dependencies
id: cache-spm
uses: actions/cache@v3
with:
restore-keys: ${{ runner.os }}-spm-WrkstrmColor-
path: apple/WrkstrmColor/.build
key: ${{ runner.os }}-spm-WrkstrmColor-${{ hashFiles('**/Package.resolved')
}}
restore-keys: ${{ runner.os }}-spm-WrkstrmColor-
- name: Check cache
- name: Check Cache
run: 'echo ''Cache hit: ${{ steps.cache-spm.outputs.cache-hit }}'''
- name: Setup Xcode
uses: maxim-lobanov/setup-xcode@v1
Expand All @@ -38,5 +38,10 @@ jobs:
- name: Swift Describe
if: steps.cache-spm.outputs.cache-hit != 'true'
run: swift package describe --type json
- 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 WrkstrmColorTests

0 comments on commit 07a2a41

Please sign in to comment.