Fix cover not loading when first entry is not an image #139
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: CI | |
on: | |
push: | |
branches: | |
- master | |
- development | |
tags: [v*] | |
jobs: | |
test: | |
name: Compile and test | |
runs-on: macOS-latest | |
strategy: | |
matrix: | |
destination: ['platform=iOS Simulator,OS=14.0,name=iPhone 11 Pro'] | |
xcode: ['/Applications/Xcode_12.app/Contents/Developer'] | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v2 | |
with: | |
submodules: 'true' | |
- name: Create LFS file list | |
run: git lfs ls-files -l | cut -d' ' -f1 | sort > .lfs-assets-id | |
- name: Restore LFS cache | |
uses: actions/cache@v2 | |
id: lfs-cache | |
with: | |
path: .git/lfs | |
key: ${{ runner.os }}-lfs-${{ hashFiles('.lfs-assets-id') }}-v1 | |
- name: Git LFS Pull | |
run: git lfs pull | |
- name: Cache pods | |
uses: actions/cache@v1 | |
with: | |
path: Pods | |
key: ${{ runner.os }}-pods-${{ hashFiles('**/Podfile.lock') }} | |
restore-keys: | | |
${{ runner.os }}-pods- | |
- name: Bundle Install | |
run: bundle install | |
- name: Dependencies | |
run: bundle exec pod install | |
env: | |
DEVELOPER_DIR: ${{ matrix.xcode }} | |
- name: Build and test | |
run: bundle exec fastlane scan --destination "${destination}" --scheme "MangaReader" | |
env: | |
destination: ${{ matrix.destination }} | |
DEVELOPER_DIR: ${{ matrix.xcode }} | |
- name: Upload code coverage | |
env: | |
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} | |
run: bash <(curl -s https://codecov.io/bash) -J 'Kantan Manga' | |
- name: Upload to App Store Connect | |
env: | |
MATCH_GIT_BASIC_AUTHORIZATION: ${{ secrets.MATCH_GIT_BASIC_AUTHORIZATION }} | |
MATCH_PASSWORD: ${{ secrets.MATCH_PASSWORD }} | |
APPSTORE_CONNECT_API_KEY_ID: ${{ secrets.APPSTORE_CONNECT_API_KEY_ID }} | |
APPSTORE_CONNECT_API_KEY_ISSUER_ID: ${{ secrets.APPSTORE_CONNECT_API_KEY_ISSUER_ID }} | |
APPSTORE_CONNECT_API_KEY: ${{ secrets.APPSTORE_CONNECT_API_KEY }} | |
if: startsWith(github.ref, 'refs/tags/v') | |
run: bundle exec fastlane beta |