Skip to content

Commit

Permalink
update query parser to resolve w (#21)
Browse files Browse the repository at this point in the history
* update query parser to resolve w

* Github Action Build & Test

* Github Action Publish
  • Loading branch information
husnjak committed Oct 24, 2023
1 parent e4d584a commit 2dc0539
Show file tree
Hide file tree
Showing 9 changed files with 4,422 additions and 2,380 deletions.
18 changes: 15 additions & 3 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,14 +14,26 @@ on:
jobs:
build:
runs-on: macos-latest
environment: apitesting
steps:
- uses: actions/checkout@v1
- uses: actions/checkout@v3
- name: Install Cocoapods
run: gem install cocoapods
- name: Deploy to Cocoapods
- if: github.event.release.tag_name == ''
name: Deploy to Cocoapods Custom
run: |
set -eo pipefail
pod lib lint --allow-warnings
pod trunk push --allow-warnings
env:
COCOAPODS_TRUNK_TOKEN: ${{ secrets.TRUNK_TOKEN }}
COCOAPODS_TRUNK_TOKEN: "${{ secrets.TRUNK_TOKEN }}"
LIB_VERSION: "${{ github.event.inputs.packagePrefix }}"
- if: github.event.inputs.packagePrefix == ''
name: Deploy to Cocoapods Release
run: |
set -eo pipefail
pod lib lint --allow-warnings
pod trunk push --allow-warnings
env:
COCOAPODS_TRUNK_TOKEN: "${{ secrets.TRUNK_TOKEN }}"
LIB_VERSION: "${{ github.event.release.tag_name }}"
18 changes: 7 additions & 11 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -1,13 +1,9 @@
# This workflow will build a Swift project
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-swift

name: Swift
name: Build & Test

on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
on: [push]

jobs:
build:
Expand All @@ -18,10 +14,10 @@ jobs:
- name: Build
run: swift build
- name: Run tests
run: swift test -v
run: swift test
env:
client_id: "${{ secrets.CLIENT_ID }}"
client_secret: "{{ secrets.CLIENT_SECRET }}"
access_token: "{{ secrets.BEARER }}"
proxy_url: "{{ secrets.PROXY_URL }}"
proxy_api_key: "{{ secrets.PROXY_API_KEY }}"
client_secret: "${{ secrets.CLIENT_SECRET }}"
access_token: "${{ secrets.BEARER_TOKEN }}"
proxy_url: "${{ secrets.PROXY_URL }}"
proxy_api_key: "${{ secrets.PROXY_API_KEY }}"
4 changes: 3 additions & 1 deletion IGDB-SWIFT-API.podspec
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Pod::Spec.new do |s|
s.name = 'IGDB-SWIFT-API'
s.version = '0.4.2'
s.version = ENV['LIB_VERSION'] || '0.4.3'
s.summary = 'Wrapper for IGDBs API written in Swift.'
s.description = "A Swift wrapper for the IGDB.com Free Video Game Database API."
s.documentation_url = "https://api-docs.igdb.com"
Expand All @@ -10,6 +10,8 @@ Pod::Spec.new do |s|
s.source = { :git => 'https://github.com/husnjak/IGDB-API-SWIFT.git', :tag => s.version.to_s }
s.platforms = { :ios => "12.2", :osx => "10.15", :watchos => "7" }
s.ios.deployment_target = '12.0'
s.osx.deployment_target = '10.15'
s.watchos.deployment_target = '7.0'
s.swift_version = '5.0'
s.source_files = 'Sources/IGDB-SWIFT-API/**/*.swift'

Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ You can either import this library using Xcode by simply pasting this repository
Or if you have a `Package.swift` file you can add this:
```swift
dependencies: [
.package(url: "https://github.com/husnjak/IGDB-SWIFT-API.git", from: "0.4.2"),
.package(url: "https://github.com/husnjak/IGDB-SWIFT-API.git", from: "0.4.3"),
],
targets: [
.target(name: "MyTarget", dependencies: ["IGDB-SWIFT-API"]),
Expand Down
Loading

0 comments on commit 2dc0539

Please sign in to comment.