Skip to content

Commit ed43488

Browse files
Add GitHub Actions (#323)
* Add GitHub Actions * Remove .travis.yml and update readme
1 parent 71d88b4 commit ed43488

File tree

6 files changed

+75
-44
lines changed

6 files changed

+75
-44
lines changed

.github/ISSUE_TEMPLATE/bug_report.md

+38
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
---
2+
name: Bug report
3+
about: Create a report to help us improve
4+
title: ''
5+
labels: ''
6+
assignees: ''
7+
8+
---
9+
10+
**Describe the bug**
11+
A clear and concise description of what the bug is.
12+
13+
**To Reproduce**
14+
Steps to reproduce the behavior:
15+
1. Go to '...'
16+
2. Click on '....'
17+
3. Scroll down to '....'
18+
4. See error
19+
20+
**Expected behavior**
21+
A clear and concise description of what you expected to happen.
22+
23+
**Screenshots**
24+
If applicable, add screenshots to help explain your problem.
25+
26+
**Desktop (please complete the following information):**
27+
- OS: [e.g. iOS]
28+
- Browser [e.g. chrome, safari]
29+
- Version [e.g. 22]
30+
31+
**Smartphone (please complete the following information):**
32+
- Device: [e.g. iPhone6]
33+
- OS: [e.g. iOS8.1]
34+
- Browser [e.g. stock browser, safari]
35+
- Version [e.g. 22]
36+
37+
**Additional context**
38+
Add any other context about the problem here.

.github/workflows/okta-oidc.yml

+35
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
name: Okta OIDC iOS
2+
3+
on:
4+
push:
5+
branches: [ master ]
6+
pull_request:
7+
branches: [ master ]
8+
9+
jobs:
10+
UnitTests:
11+
runs-on: macos-11
12+
env:
13+
DEVELOPER_DIR: /Applications/Xcode_13.1.app/Contents/Developer
14+
steps:
15+
- uses: actions/checkout@v2
16+
- name: iOS
17+
run: set -o pipefail && xcodebuild -project okta-oidc.xcodeproj -scheme "okta-oidc-ios" -destination "platform=iOS Simulator,OS=latest,name=iPhone 11" clean test | xcpretty
18+
- name: macOS
19+
run: set -o pipefail && xcodebuild -project okta-oidc.xcodeproj -scheme "okta-oidc-mac" -destination "platform=macOS" clean test | xcpretty
20+
- name: Swift
21+
run: swift test -v
22+
UITests:
23+
runs-on: macos-11
24+
steps:
25+
- uses: actions/checkout@v2
26+
- name: iOS
27+
run: set -o pipefail && xcodebuild -project okta-oidc.xcodeproj -scheme "okta-oidc" -destination "platform=iOS Simulator,OS=latest,name=iPhone 11" clean test | xcpretty
28+
PackageValidation:
29+
runs-on: macos-11
30+
env:
31+
DEVELOPER_DIR: /Applications/Xcode_13.1.app/Contents/Developer
32+
steps:
33+
- uses: actions/checkout@v2
34+
- name: Cocoapods
35+
run: pod lib lint

.travis.yml

-43
This file was deleted.

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
[<img src="https://aws1.discourse-cdn.com/standard14/uploads/oktadev/original/1X/0c6402653dfb70edc661d4976a43a46f33e5e919.png" align="right" width="256px"/>](https://devforum.okta.com/)
2-
[![CI Status](http://img.shields.io/travis/okta/okta-oidc-ios.svg?style=flat)](https://travis-ci.com/okta/okta-oidc-ios)
2+
[![CI Status](https://github.com/okta/okta-oidc-ios/actions/workflows/okta-oidc.yml/badge.svg)](https://travis-ci.com/okta/okta-oidc-ios)
33
[![Carthage compatible](https://img.shields.io/badge/Carthage-compatible-4BC51D.svg?style=flat)](https://github.com/Carthage/Carthage)
44
[![Version](https://img.shields.io/cocoapods/v/OktaOidc.svg?style=flat)](http://cocoapods.org/pods/OktaOidc)
55
[![License](https://img.shields.io/cocoapods/l/OktaOidc.svg?style=flat)](http://cocoapods.org/pods/OktaOidc)

Sources/OktaOidc/macOS/Internal/Tasks/OktaOidcBrowserTaskMAC.swift

+1
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
#if os(macOS)
1414

1515
import Foundation
16+
import ApplicationServices
1617

1718
#if SWIFT_PACKAGE
1819
@testable import OktaOidc_AppAuth

0 commit comments

Comments
 (0)