Skip to content
This repository has been archived by the owner on Jan 23, 2023. It is now read-only.

Commit

Permalink
Remove watchOS scheme and add job to run tests on Linux
Browse files Browse the repository at this point in the history
  • Loading branch information
gonzalezreal committed Oct 8, 2021
1 parent 672f7a7 commit c17d8df
Show file tree
Hide file tree
Showing 4 changed files with 22 additions and 83 deletions.
12 changes: 9 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,17 @@ on:
branches:
- '*'
jobs:
tests:
runs-on: macos-11.0
test-swift:
runs-on: macos-11
steps:
- uses: actions/checkout@v2
- name: Select Xcode 12.5
run: sudo xcode-select -s /Applications/Xcode_12.5.app
- name: Run tests
run: make
run: make test-swift
test-linux:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Run tests
run: make test-linux
5 changes: 0 additions & 5 deletions .spi.yml

This file was deleted.

This file was deleted.

21 changes: 13 additions & 8 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,14 +1,19 @@
default: test build_watchOS
test-all: test-linux test-swift

test:
swift test
test-linux:
docker run \
--rm \
-v "$(PWD):$(PWD)" \
-w "$(PWD)" \
swift:5.3 \
bash -c 'make test-swift'

build_watchOS:
xcodebuild \
-scheme SwiftCommonMark-watchOS \
-destination 'generic/platform=watchOS'
test-swift:
swift test \
--enable-test-discovery \
--parallel

format:
swift format --in-place --recursive .

.PHONY: format
.PHONY: format test-all test-linux test-swift

0 comments on commit c17d8df

Please sign in to comment.