Skip to content

Commit

Permalink
Merge pull request #28 from emvakar/develop
Browse files Browse the repository at this point in the history
Develop
  • Loading branch information
emvakar committed Oct 4, 2023
2 parents 8f6e692 + 02fb182 commit eae8767
Show file tree
Hide file tree
Showing 11 changed files with 138 additions and 110 deletions.
25 changes: 25 additions & 0 deletions .github/workflows/auto-label-ios.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: Auto Label

on:
issues:
types: [opened]

jobs:
auto-label:
runs-on: ubuntu-latest
steps:
- name: Add label to issue
uses: actions/github-script@v5
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
script: |
const issueNumber = context.issue.number;
const repo = context.repo;
const labelToAdd = "server";
await github.rest.issues.addLabels({
owner: repo.owner,
repo: repo.repo,
issue_number: issueNumber,
labels: [labelToAdd],
});
19 changes: 19 additions & 0 deletions .github/workflows/auto-project.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
name: Auto assign to project

on:
issues:
types: [opened]

env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

jobs:
assign_one_project:
runs-on: ubuntu-latest
name: Assign to Project
steps:
- name: Assign NEW issues and NEW pull requests to project 2
uses: srggrs/[email protected]
with:
project: 'https://github.com/users/emvakar/projects/12'
column_name: 'Todo'
32 changes: 32 additions & 0 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: Tests

on:
push:
branches:
- develop
paths-ignore:
- '**.md'
- 'LICENSE'
- '**/*.gitignore'
- '**/*.eslintrc.json'
- '**/*.dockerignore'
# - '.github/**'

workflow_dispatch:

env:
BUILD_BRANCH: ${{ github.ref_name }}
GIT_TERMINAL_PROMPT: 1

jobs:
test:
runs-on: macos-latest
steps:
- uses: actions/checkout@v4
- uses: swift-actions/setup-swift@main
with:
swift-version: "5"
- name: Build
run: swift build
- name: Run tests
run: swift test
106 changes: 24 additions & 82 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,36 +1,13 @@

# Created by https://www.gitignore.io/api/swift,xcode,Cobjective-c,osx

#!! ERROR: cobjective-c is undefined. Use list command to see defined gitignore types !!#

### OSX ###
*.DS_Store
.AppleDouble
.LSOverride

# Icon must end with two \r
Icon

# Thumbnails
._*

# Files that might appear in the root of a volume
.DocumentRevisions-V100
.fseventsd
.Spotlight-V100
.TemporaryItems
.Trashes
.VolumeIcon.icns
.com.apple.timemachine.donotpresent

# Directories potentially created on remote AFP share
.AppleDB
.AppleDesktop
Network Trash Folder
Temporary Items
.apdisk

### Swift ###
Packages
.build
xcuserdata
*.xcodeproj
# *.xcworkspace
DerivedData/
.DS_Store
Public/users
Public/.gitkeep
Public/
# Xcode
#
# gitignore contributors: remember to update Global/Xcode.gitignore, Objective-C.gitignore & Swift.gitignore
Expand Down Expand Up @@ -64,64 +41,29 @@ xcuserdata/
## Playgrounds
timeline.xctimeline
playground.xcworkspace
*.xcworkspace
Podfile.lock

# Swift Package Manager
#
# Add this line if you want to avoid checking in source code from Swift Package Manager dependencies.
# Packages/
# Package.pins
# Package.resolved
.build/

# CocoaPods - Refactored to standalone file

# Carthage - Refactored to standalone file

# fastlane
#
# It is recommended to not store the screenshots in the git repo. Instead, use fastlane to re-generate the
# screenshots whenever they are needed.
# For more information about the recommended setup visit:
# https://docs.fastlane.tools/best-practices/source-control/#source-control

fastlane/report.xml
fastlane/Preview.html
fastlane/screenshots
fastlane/test_output
# Idea
.\!*
\!.*

### Swift.CocoaPods Stack ###
## CocoaPods GitIgnore Template
# envirentments
# .env.development
.env.testing
.env.production
.env

# CocoaPods - Only use to conserve bandwidth / Save time on Pushing
# - Also handy if you have a lage number of dependant pods
# - AS PER https://guides.cocoapods.org/using/using-cocoapods.html NEVER IGONRE THE LOCK FILE
Pods/

### Swift.Carthage Stack ###
# Carthage
#
# Add this line if you want to avoid checking in source code from Carthage dependencies.
# Carthage/Checkouts

Carthage/Build

### Xcode ###
# Xcode
#
# gitignore contributors: remember to update Global/Xcode.gitignore, Objective-C.gitignore & Swift.gitignore

## Build generated

## Various settings

## Other
fbToken.json

### Xcode Patch ###
*.xcodeproj/*
!*.xcodeproj/project.pbxproj
!*.xcodeproj/xcshareddata/
!*.xcworkspace/contents.xcworkspacedata
/*.gcno

# End of https://www.gitignore.io/api/swift,xcode,Cobjective-c,osx
*.p8
.vscode
.env.development
.env.*
1 change: 0 additions & 1 deletion .swift-version

This file was deleted.

7 changes: 7 additions & 0 deletions .swiftpm/xcode/package.xcworkspace/contents.xcworkspacedata

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>ORGANIZATIONNAME</key>
<string>Emil Karimov</string>
<key>PACKAGENAME</key>
<string>EKAstrologyCalc</string>
<key>FILEHEADER</key>
<string>
// ___FILENAME___
// ___PACKAGENAME___
//
// Created by ___FULLUSERNAME___ on ___DATE___.
// Copyright © ___YEAR___ ___ORGANIZATIONNAME___. All rights reserved.
//</string>
</dict>
</plist>
7 changes: 0 additions & 7 deletions .travis.yml

This file was deleted.

17 changes: 13 additions & 4 deletions Package.swift
Original file line number Diff line number Diff line change
@@ -1,19 +1,28 @@
// swift-tools-version:5.2
// swift-tools-version:5.8
// The swift-tools-version declares the minimum version of Swift required to build this package.

import PackageDescription

let package = Package(
name: "EKAstrologyCalc",
platforms: [.iOS(.v11), .macOS(.v10_12)],
platforms: [
.iOS(.v11),
.macOS(.v12),
.tvOS(.v11),
.watchOS(.v5),
],
products: [
.library(name: "EKAstrologyCalc", targets: ["EKAstrologyCalc"]),
],
dependencies: [
.package(url: "https://github.com/ESKARIA/ESDateHelper.git", from: "1.1.0")
],
targets: [
.target(name: "EKAstrologyCalc", dependencies: ["ESDateHelper"]),
.testTarget(name: "EKAstrologyCalcTests", dependencies: ["EKAstrologyCalc"]),
.target(name: "EKAstrologyCalc", dependencies: [
"ESDateHelper"
]),
.testTarget(name: "EKAstrologyCalcTests", dependencies: [
"EKAstrologyCalc"
]),
]
)
9 changes: 0 additions & 9 deletions Tests/EKAstrologyCalcTests/XCTestManifests.swift

This file was deleted.

7 changes: 0 additions & 7 deletions Tests/LinuxMain.swift

This file was deleted.

0 comments on commit eae8767

Please sign in to comment.