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

update query parser to resolve w #21

Merged
merged 34 commits into from
Oct 24, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
34 commits
Select commit Hold shift + click to select a range
4c1db74
update query parser to resolve w
husnjaktv Sep 6, 2023
9de271b
Create swift.yml
husnjak Oct 23, 2023
9b1c143
Update and rename swift.yml to test.yml
husnjak Oct 23, 2023
a077926
Update test.yml
husnjak Oct 23, 2023
46ab2bc
Update test.yml
husnjak Oct 23, 2023
5c0c35f
Update test.yml
husnjak Oct 23, 2023
d0f1d72
Update test.yml
husnjak Oct 23, 2023
11c3242
Update test.yml
husnjak Oct 23, 2023
ede222f
Update test.yml
husnjak Oct 23, 2023
630504a
on push
husnjaktv Oct 23, 2023
8887dd7
New Proto File
husnjaktv Oct 24, 2023
a00e008
debug test fail
husnjaktv Oct 24, 2023
b88934c
debug test fail
husnjaktv Oct 24, 2023
21bbfa2
prints
husnjaktv Oct 24, 2023
d819c3c
filter on failing test
husnjaktv Oct 24, 2023
f19e923
more prints
husnjaktv Oct 24, 2023
5ce4bba
verbose test
husnjaktv Oct 24, 2023
854686a
skip test
husnjaktv Oct 24, 2023
c1e04ac
Publish action
husnjaktv Oct 24, 2023
85d4588
install protoc
husnjaktv Oct 24, 2023
3b5a88a
install protoc
husnjaktv Oct 24, 2023
ab3085c
fix bearer secret
husnjaktv Oct 24, 2023
09f59c5
remove protoc
husnjaktv Oct 24, 2023
d3a650b
remove test skip
husnjaktv Oct 24, 2023
dc428c6
fix secret import
husnjaktv Oct 24, 2023
6114a38
rename actions
husnjaktv Oct 24, 2023
3dbe5c8
update package versioning
husnjaktv Oct 24, 2023
fae5499
set defualt version
husnjaktv Oct 24, 2023
342b019
update published action
husnjaktv Oct 24, 2023
920de07
add env to publish
husnjaktv Oct 24, 2023
458e1a8
reset tests
husnjaktv Oct 24, 2023
14b2fa6
update package version
husnjaktv Oct 24, 2023
c1007d4
Merge branch 'main' into apicalpse-query-parser
husnjak Oct 24, 2023
0f26016
update checkout version
husnjaktv Oct 24, 2023
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
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