Skip to content

Commit d9e9442

Browse files
authored
Migrate to Github actions (#297)
1 parent 1565dfa commit d9e9442

File tree

2 files changed

+62
-77
lines changed

2 files changed

+62
-77
lines changed

.github/workflows/swift.yml

Lines changed: 62 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,62 @@
1+
name: Swift
2+
3+
on:
4+
push:
5+
branches:
6+
- master
7+
pull_request:
8+
branches:
9+
- master
10+
11+
jobs:
12+
13+
DANGER:
14+
runs-on: ubuntu-latest
15+
name: "Run Danger"
16+
steps:
17+
- uses: actions/[email protected]
18+
- name: Danger
19+
uses: danger/[email protected]
20+
with:
21+
args: --failOnErrors --no-publish-check
22+
23+
SPM:
24+
25+
runs-on: macOS-latest
26+
27+
steps:
28+
- uses: actions/[email protected]
29+
- name: Test
30+
run: swift test
31+
32+
POD:
33+
34+
runs-on: macOS-latest
35+
36+
steps:
37+
- uses: actions/[email protected]
38+
- name: Lint
39+
run: pod lib lint
40+
41+
CARTHAGE:
42+
43+
runs-on: macOS-latest
44+
45+
steps:
46+
- uses: actions/[email protected]
47+
- name: Bootstrap
48+
run: carthage bootstrap --cache-builds
49+
- name: Build
50+
run: carthage build --no-skip-current --cache-builds;
51+
52+
XCODE:
53+
54+
runs-on: macOS-latest
55+
56+
steps:
57+
- uses: actions/[email protected]
58+
- name: Checkout
59+
run: carthage bootstrap --platform mac --cache-builds
60+
- name: Build
61+
run: xcodebuild -project "SwiftQueue.xcodeproj" -scheme "SwiftQueue macOS" -destination "arch=x86_64" -configuration Debug ONLY_ACTIVE_ARCH=NO ENABLE_TESTABILITY=YES test -enableCodeCoverage YES | xcpretty
62+
- uses: codecov/codecov-action@v1

.travis.yml

Lines changed: 0 additions & 77 deletions
This file was deleted.

0 commit comments

Comments
 (0)