Skip to content

Linux POC #176

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
222 changes: 111 additions & 111 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
@@ -1,115 +1,115 @@
# Use the latest 2.1 version of CircleCI pipeline process engine.
# See: https://circleci.com/docs/2.0/configuration-reference
version: 2.1
# # Use the latest 2.1 version of CircleCI pipeline process engine.
# # See: https://circleci.com/docs/2.0/configuration-reference
# version: 2.1

orbs:
general-platform-helpers: okta/general-platform-helpers@1.9
# orbs:
# general-platform-helpers: okta/general-platform-helpers@1.9

executors:
apple-ci-arm-medium:
macos:
xcode: 15.2.0
resource_class: macos.m1.medium.gen1
# executors:
# apple-ci-arm-medium:
# macos:
# xcode: 15.2.0
# resource_class: macos.m1.medium.gen1

jobs:
sample-app:
executor: apple-ci-arm-medium
steps:
- checkout
- run:
name: Install pods
command: cd Examples/PushSampleApp; pod install
- run:
name: "Build iOS PushSDK Sample App"
command: xcodebuild -workspace ./Examples/PushSampleApp/SampleApp.xcworkspace -scheme "SampleApp" -destination "platform=iOS Simulator,OS=latest,name=iPhone 15" clean build
spm:
executor: apple-ci-arm-medium
steps:
- checkout
- run:
name: Build Swift Package
command: swift build
build:
executor: apple-ci-arm-medium
steps:
- checkout
- run:
name: Install rosetta # Needed for swiftlint to work on M1 machines.
command: softwareupdate --install-rosetta --agree-to-license
- run:
name: Install pods
command: pod install
- run:
name: Build for testing and code coverage
command: set -o pipefail && xcodebuild -workspace DeviceAuthenticator.xcworkspace -scheme "DeviceAuthenticatorFramework" -destination "platform=iOS Simulator,OS=latest,name=iPhone 15" -derivedDataPath DerivedData build-for-testing | xcpretty
- persist_to_workspace:
root: DerivedData
paths:
- Build/Products
unit-tests:
executor: apple-ci-arm-medium
steps:
- checkout
- attach_workspace:
at: DerivedData
- run:
name: Unit tests
command: set -o pipefail && xcodebuild -workspace DeviceAuthenticator.xcworkspace -scheme "DeviceAuthenticatorFramework" -destination "platform=iOS Simulator,OS=latest,name=iPhone 15" -derivedDataPath DerivedData test-without-building -only-testing:DeviceAuthenticatorUnitTests -enableCodeCoverage YES | xcpretty
functional-tests:
executor: apple-ci-arm-medium
steps:
- checkout
- attach_workspace:
at: DerivedData
- run:
name: Functional tests
command: set -o pipefail && xcodebuild -workspace DeviceAuthenticator.xcworkspace -scheme "DeviceAuthenticatorFramework" -destination "platform=iOS Simulator,OS=latest,name=iPhone 15" -derivedDataPath DerivedData test-without-building -only-testing:DeviceAuthenticatorFunctionalTests -enableCodeCoverage YES | xcpretty
snyk-scan:
executor: apple-ci-arm-medium
steps:
- checkout
- run:
name: Install rosetta # Needed for snyk to work on M1 machines.
command: softwareupdate --install-rosetta --agree-to-license
- run:
name: Install pods
command: pod install
- run:
name: run swift package show dependencies
command: swift package show-dependencies
- general-platform-helpers/step-run-snyk-monitor:
scan-all-projects: true
skip-unresolved: false
run-on-non-main: true
os: macos
# jobs:
# sample-app:
# executor: apple-ci-arm-medium
# steps:
# - checkout
# - run:
# name: Install pods
# command: cd Examples/PushSampleApp; pod install
# - run:
# name: "Build iOS PushSDK Sample App"
# command: xcodebuild -workspace ./Examples/PushSampleApp/SampleApp.xcworkspace -scheme "SampleApp" -destination "platform=iOS Simulator,OS=latest,name=iPhone 15" clean build
# spm:
# executor: apple-ci-arm-medium
# steps:
# - checkout
# - run:
# name: Build Swift Package
# command: swift build
# build:
# executor: apple-ci-arm-medium
# steps:
# - checkout
# - run:
# name: Install rosetta # Needed for swiftlint to work on M1 machines.
# command: softwareupdate --install-rosetta --agree-to-license
# - run:
# name: Install pods
# command: pod install
# - run:
# name: Build for testing and code coverage
# command: set -o pipefail && xcodebuild -workspace DeviceAuthenticator.xcworkspace -scheme "DeviceAuthenticatorFramework" -destination "platform=iOS Simulator,OS=latest,name=iPhone 15" -derivedDataPath DerivedData build-for-testing | xcpretty
# - persist_to_workspace:
# root: DerivedData
# paths:
# - Build/Products
# unit-tests:
# executor: apple-ci-arm-medium
# steps:
# - checkout
# - attach_workspace:
# at: DerivedData
# - run:
# name: Unit tests
# command: set -o pipefail && xcodebuild -workspace DeviceAuthenticator.xcworkspace -scheme "DeviceAuthenticatorFramework" -destination "platform=iOS Simulator,OS=latest,name=iPhone 15" -derivedDataPath DerivedData test-without-building -only-testing:DeviceAuthenticatorUnitTests -enableCodeCoverage YES | xcpretty
# functional-tests:
# executor: apple-ci-arm-medium
# steps:
# - checkout
# - attach_workspace:
# at: DerivedData
# - run:
# name: Functional tests
# command: set -o pipefail && xcodebuild -workspace DeviceAuthenticator.xcworkspace -scheme "DeviceAuthenticatorFramework" -destination "platform=iOS Simulator,OS=latest,name=iPhone 15" -derivedDataPath DerivedData test-without-building -only-testing:DeviceAuthenticatorFunctionalTests -enableCodeCoverage YES | xcpretty
# snyk-scan:
# executor: apple-ci-arm-medium
# steps:
# - checkout
# - run:
# name: Install rosetta # Needed for snyk to work on M1 machines.
# command: softwareupdate --install-rosetta --agree-to-license
# - run:
# name: Install pods
# command: pod install
# - run:
# name: run swift package show dependencies
# command: swift package show-dependencies
# - general-platform-helpers/step-run-snyk-monitor:
# scan-all-projects: true
# skip-unresolved: false
# run-on-non-main: true
# os: macos

workflows:
build-sample-app:
jobs:
- sample-app
build-swift-package:
jobs:
- spm
build-and-test:
jobs:
- build
- unit-tests:
requires:
- build
- functional-tests:
requires:
- build
- snyk-scan:
name: execute-snyk
filters:
branches:
only:
- master
context:
- static-analysis
semgrep:
jobs:
- general-platform-helpers/job-semgrep-scan:
name: semgrep-scan
context:
- static-analysis
# workflows:
# build-sample-app:
# jobs:
# - sample-app
# build-swift-package:
# jobs:
# - spm
# build-and-test:
# jobs:
# - build
# - unit-tests:
# requires:
# - build
# - functional-tests:
# requires:
# - build
# - snyk-scan:
# name: execute-snyk
# filters:
# branches:
# only:
# - master
# context:
# - static-analysis
# semgrep:
# jobs:
# - general-platform-helpers/job-semgrep-scan:
# name: semgrep-scan
# context:
# - static-analysis
25 changes: 25 additions & 0 deletions .github/workflows/okta_devices.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: Linux POC

on:
push:
branches: [ master ]
pull_request:
branches: [ master ]

jobs:
Poc-on-Ubuntu:
name: Poc on Ubuntu
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: '14'
- run: |
pwd
ls
who
whoami
echo $DBUS_SESSION_BUS_ADDRESS
dbus-monitor
systemctl status dbus
Loading