Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Create GitHub Action CI file #31

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

Open
f-meloni wants to merge 7 commits into master
base: master
Choose a base branch
Loading
from f-meloni-patch-1
Open

Create GitHub Action CI file #31

f-meloni wants to merge 7 commits into master from f-meloni-patch-1

Conversation

@f-meloni
Copy link
Owner

@f-meloni f-meloni commented Oct 23, 2021

No description provided.

Copy link

github-actions bot commented Oct 23, 2021
edited
Loading

Fails
🚫 Failed to get the coverage - Error: Could not find the xcresult file

Generated by 🚫 Danger Swift against da378c6

Package.swift Outdated
@@ -1,4 +1,4 @@
// swift-tools-version:5.1
// swift-tools-version:5.3
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you try setting this to 5.5?

- run: gem install bundler
- run: bundle install
- run: npm install -g danger
- run: swift package generate-xcodeproj
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

generate-xcodeproj is deprecated. We're now using xcodebuild directly through fastlane scan, which results in the following output:

[13:10:35]: $ set -o pipefail && cd WeTransferPRLinter/ && env NSUnbufferedIO=YES xcodebuild -scheme WeTransferPRLinter -destination 'platform=macOS' -resultBundlePath 'build/reports/WeTransferPRLinter.xcresult' -enableCodeCoverage YES -clonedSourcePackagesDirPath /Users/vagrant/git/.build build test | tee '/Users/vagrant/Library/Logs/scan/WeTransferPRLinter.log' | xcpretty --report junit --output '/var/folders/g2/xnd8hpjs50v433gfrybz2nxh0000gn/T/junit_report20211025-1719-128l68k' 

In other words, you can skip generating the Xcode project and just use xcodebuild directly on the package

Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I knew was deprecated, but didn't know I could use xcodebuild directly, that is pretty cool! thank you :)

Copy link
Contributor

AvdLee commented Nov 11, 2021

@f-meloni what is the status of this? Our tests are still failing using the Danger master branch :(

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

1 more reviewer

@AvdLee AvdLee AvdLee requested changes

Reviewers whose approvals may not affect merge requirements

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

2 participants

AltStyle によって変換されたページ (->オリジナル) /