Skip to content
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

Use GitHub actions #8

Open
wants to merge 7 commits into
base: main
Choose a base branch
from
Open
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
55 changes: 55 additions & 0 deletions .github/workflows/check-pr.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
name: Check PR

on:
pull_request:
branches: [ main ]

env:
PROJECT_FILE: RFISO8601DateTime.xcodeproj
PROJECT_SCHEME: RFISO8601DateTimeTests
PODSPEC_FILE: RFISO8601DateTime.podspec

jobs:
build:

runs-on: macos-latest

strategy:
matrix:
xcode:
- destination: platform=iOS Simulator,OS=latest,name=iPhone 11
version : latest-stable
# - destination: platform=iOS Simulator,OS=14.4,name=iPhone 11
# version: 12.4
# - destination: platform=iOS Simulator,OS=13.7,name=iPhone 11
# version: 11.7
# - destination: platform=iOS Simulator,OS=12.4,name=iPhone 7
# version: 10.3

steps:
- uses: actions/checkout@v2
with:
ref: ${{ github.head_ref }}
- uses: ruby/setup-ruby@v1
with:
bundler-cache: true
- uses: maxim-lobanov/setup-xcode@v1
with:
xcode-version: ${{ matrix.xcode.version }}

- name: Xcode Test
uses: devbotsxyz/[email protected]
with:
project: ${{ env.PROJECT_FILE }}
scheme: ${{ env.PROJECT_SCHEME }}
configuration: Debug
destination: ${{ matrix.xcode.destination }}

- uses: codecov/codecov-action@v1
name: Determine code coverage with CodeCov

- name: Sed new version in Podspec
run: sed -i "" -e 's|<LIB_VERSION>|1.1.1|g' ${{ env.PODSPEC_FILE }}

- name: Perform Cocoapod lib lint validation
run: bundle exec pod lib lint --quick --allow-warnings
1 change: 1 addition & 0 deletions .ruby-version
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
2.6.6
1 change: 0 additions & 1 deletion .swift-version

This file was deleted.

26 changes: 0 additions & 26 deletions .travis.yml

This file was deleted.

4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# RFISO8601DateTime

[![CI Status](http://img.shields.io/travis/readefries/RFISO8601DateTime.svg?style=flat)](https://travis-ci.org/readefries/RFISO8601DateTime)
[![Unit tests](https://github.com/readefries/RFISO8601DateTime/actions/workflows/check-pr.yml/badge.svg)](https://github.com/readefries/RFISO8601DateTime/actions/workflows/check-pr.yml)
[![Version](https://img.shields.io/cocoapods/v/RFISO8601DateTime.svg?style=flat)](http://cocoapods.org/pods/RFISO8601DateTime)
[![License](https://img.shields.io/cocoapods/l/RFISO8601DateTime.svg?style=flat)](http://cocoapods.org/pods/RFISO8601DateTime)
[![Platform](https://img.shields.io/cocoapods/p/RFISO8601DateTime.svg?style=flat)](http://cocoapods.org/pods/RFISO8601DateTime)
Expand Down Expand Up @@ -53,7 +53,7 @@ pod 'RFISO8601DateTime', '~> 1.0' # Swift 2.3

## Author

Hindrik Bruinsma, de@readefries.nl
Hindrik Bruinsma, hbruinsma@xs4some.nl

## License

Expand Down
5 changes: 3 additions & 2 deletions RFISO8601DateTime.podspec
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,9 @@

Pod::Spec.new do |s|
s.name = "RFISO8601DateTime"
s.version = "3.0.3"
s.version = "<LIB_VERSION>"
s.summary = "A library to easily use ISO8601 date and time."
s.swift_version = "5.0"
s.description = <<-DESC
A small library that can automatically parse ISO8601/RFC3339/RFC2822 date
and time. It extends NSDate and recognise different date and time formats using regular expression.
Expand All @@ -22,7 +23,7 @@ Pod::Spec.new do |s|
s.source = { :git => "https://github.com/readefries/RFISO8601DateTime.git", :tag => s.version.to_s }
s.social_media_url = 'https://twitter.com/readefries'

s.platform = :ios, '8.0'
s.ios.deployment_target = '9.0'
s.requires_arc = true

s.source_files = 'RFISO8601DateTime/**/*.swift'
Expand Down
8 changes: 2 additions & 6 deletions RFISO8601DateTime.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@
B14A56101C577E8C005201FE /* .gitignore in Resources */ = {isa = PBXBuildFile; fileRef = B14A560F1C577E8C005201FE /* .gitignore */; };
B14A56141C577EE0005201FE /* RFISO8601DateTime.podspec in Resources */ = {isa = PBXBuildFile; fileRef = B14A56111C577EE0005201FE /* RFISO8601DateTime.podspec */; };
B14A56161C577EE0005201FE /* LICENSE in Resources */ = {isa = PBXBuildFile; fileRef = B14A56131C577EE0005201FE /* LICENSE */; };
B14A56181C577EF8005201FE /* .travis.yml in Resources */ = {isa = PBXBuildFile; fileRef = B14A56171C577EF8005201FE /* .travis.yml */; };
/* End PBXBuildFile section */

/* Begin PBXContainerItemProxy section */
Expand Down Expand Up @@ -45,7 +44,6 @@
B14A56111C577EE0005201FE /* RFISO8601DateTime.podspec */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text; path = RFISO8601DateTime.podspec; sourceTree = "<group>"; };
B14A56121C577EE0005201FE /* README.md */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = net.daringfireball.markdown; path = README.md; sourceTree = "<group>"; };
B14A56131C577EE0005201FE /* LICENSE */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text; path = LICENSE; sourceTree = "<group>"; };
B14A56171C577EF8005201FE /* .travis.yml */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text; path = .travis.yml; sourceTree = "<group>"; };
B1A3FED51DDCE78000DA5D69 /* CHANGELOG.md */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = net.daringfireball.markdown; path = CHANGELOG.md; sourceTree = "<group>"; };
/* End PBXFileReference section */

Expand All @@ -72,7 +70,6 @@
isa = PBXGroup;
children = (
B14A560F1C577E8C005201FE /* .gitignore */,
B14A56171C577EF8005201FE /* .travis.yml */,
B1A3FED51DDCE78000DA5D69 /* CHANGELOG.md */,
B14A56121C577EE0005201FE /* README.md */,
B14A56111C577EE0005201FE /* RFISO8601DateTime.podspec */,
Expand Down Expand Up @@ -210,7 +207,6 @@
files = (
B14A56161C577EE0005201FE /* LICENSE in Resources */,
B14A56141C577EE0005201FE /* RFISO8601DateTime.podspec in Resources */,
B14A56181C577EF8005201FE /* .travis.yml in Resources */,
B14A56101C577E8C005201FE /* .gitignore in Resources */,
);
runOnlyForDeploymentPostprocessing = 0;
Expand Down Expand Up @@ -302,7 +298,7 @@
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
GCC_WARN_UNUSED_FUNCTION = YES;
GCC_WARN_UNUSED_VARIABLE = YES;
IPHONEOS_DEPLOYMENT_TARGET = 8.0;
IPHONEOS_DEPLOYMENT_TARGET = 9.0;
MTL_ENABLE_DEBUG_INFO = YES;
ONLY_ACTIVE_ARCH = YES;
SDKROOT = iphoneos;
Expand Down Expand Up @@ -355,7 +351,7 @@
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
GCC_WARN_UNUSED_FUNCTION = YES;
GCC_WARN_UNUSED_VARIABLE = YES;
IPHONEOS_DEPLOYMENT_TARGET = 8.0;
IPHONEOS_DEPLOYMENT_TARGET = 9.0;
MTL_ENABLE_DEBUG_INFO = NO;
SDKROOT = iphoneos;
SWIFT_VERSION = 5.0;
Expand Down