Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
41 changes: 41 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
name: GitUpKit Tests

on:
push:
branches:
- master
pull_request:
branches:
- master

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

jobs:
test:
name: Run GitUpKit Tests
runs-on: macos-latest

steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
submodules: true

- name: Select Xcode version
run: sudo xcode-select -s /Applications/Xcode.app/Contents/Developer

- name: Show Xcode version
run: xcodebuild -version

- name: Run GitUpKit (macOS) tests
working-directory: GitUpKit
run: |
xcodebuild test \
-scheme "GitUpKit (macOS)" \
-destination "platform=macOS" \
CODE_SIGN_IDENTITY="" \
CODE_SIGNING_REQUIRED=NO \
CODE_SIGNING_ALLOWED=NO

3 changes: 0 additions & 3 deletions .travis.yml

This file was deleted.

4 changes: 2 additions & 2 deletions GitUpKit/Core/GCTestCase.m
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,8 @@ @implementation GCTestCase
- (void)setUp {
[super setUp];

// Figure out if running as Xcode Server bot or under Travis CI
_botMode = [NSUserName() isEqualToString:@"_xcsbuildd"] || getenv("TRAVIS");
// Figure out if running via GitHub Actions. This runner value is the user used by GitHub Actions.
_botMode = [NSProcessInfo.processInfo.environment[@"USER"] isEqualToString: @"runner"];
}

- (GCRepository*)createLocalRepositoryAtPath:(NSString*)path bare:(BOOL)bare {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,11 @@
BlueprintName = "Tests"
ReferencedContainer = "container:GitUpKit.xcodeproj">
</BuildableReference>
<SkippedTests>
<Test
Identifier = "GCSQLiteRepositoryTests">
</Test>
</SkippedTests>
</TestableReference>
</Testables>
</TestAction>
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
[![Build Status](https://travis-ci.org/git-up/GitUp.svg?branch=master)](https://travis-ci.org/git-up/GitUp)
[![Build Status](https://github.com/git-up/GitUp/actions/workflows/test.yml/badge.svg?branch=master)](https://github.com/git-up/GitUp/actions/workflows/test.yml?query=branch%3Amaster)

GitUp
=====
Expand Down
27 changes: 0 additions & 27 deletions travis-build.sh

This file was deleted.