Skip to content
Open
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
65 changes: 65 additions & 0 deletions .github/workflows/objective-c-xcode.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,65 @@
name: Xcode - Build and Analyze

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

env:
LC_CTYPE: en_US.UTF-8
LANG: en_US.UTF-8
LANGUAGE: en_US.UTF-8

jobs:
cancel-previous:
name: Cancel Previous
permissions:
contents: read
actions: write
runs-on: ubuntu-latest
steps:
- name: Cancel Previous Build
uses: styfle/cancel-workflow-action@0.11.0
with:
access_token: ${{ secrets.GITHUB_TOKEN }}
danger:
name: Check Danger
runs-on: ubuntu-latest
needs: cancel-previous
env:
DANGER_GITHUB_BEARER_TOKEN: ${{ secrets.DANGER_GITHUB_API_TOKEN }}
steps:
- name: Checkout
uses: actions/checkout@v3
- uses: ruby/setup-ruby@v1
with:
bundler-cache: true
- name: Check
run: bundle exec danger

build:
name: Build and analyse default scheme using xcodebuild command
runs-on: macos-latest
needs: cancel-previous
steps:
- name: Checkout
uses: actions/checkout@v3
- uses: maxim-lobanov/setup-xcode@v1
with:
xcode-version: latest-stable
- uses: ruby/setup-ruby@v1
with:
bundler-cache: true
- name: Setup
run: make setup
- name: Test code Coverage
run: |
make cibuild FL_LANE=code_coverage FASTLANE_ENV=default
bash <(curl -s https://codecov.io/bash) -J 'DataKit'
- name: Build iOS
run: make cibuild FASTLANE_ENV=ios13_xcode11
- name: Build macOS
run: make cibuild FASTLANE_ENV=osx15
2 changes: 1 addition & 1 deletion .ruby-version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
2.6.0
2.7.7
2 changes: 1 addition & 1 deletion Gemfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
source "https://rubygems.org"

ruby "~>2.6"
ruby "~>2.7"

gem "fastlane", "~>2.206"
gem "danger", "~>8.4"
Expand Down
2 changes: 1 addition & 1 deletion Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -348,7 +348,7 @@ DEPENDENCIES
xcodeproj (~> 1.21)

RUBY VERSION
ruby 2.6.5p114
ruby 2.7.7p221

BUNDLED WITH
1.17.3
14 changes: 9 additions & 5 deletions script/bootstrap
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
#!/bin/sh
#!/usr/bin/env bash

# script/bootstrap: Resolve all dependencies that the application requires to
# run.

set -ev
set -eo pipefail

cd "$(dirname "$0")/.."

Expand Down Expand Up @@ -33,9 +33,13 @@ fi
# fi

if [ -f "Gemfile" ]; then
hash bundle 2>/dev/null || {
echo "==> Installing gem bundler 2.1.4…"
gem install bundler -v 2.1.4 --no-document --quiet
}
echo "==> Installing gem dependencies…"
gem install bundler -v 2.0.1 --no-document --quiet
bundle check --path vendor/gems >/dev/null 2>&1 || {
bundle install --path vendor/gems --quiet --without production
bundle config set path 'vendor/gems'
bundle check >/dev/null 2>&1 || {
bundle install --quiet
}
fi
2 changes: 1 addition & 1 deletion script/build
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/sh
#!/usr/bin/env bash

# script/build: Build the application.s

Expand Down
2 changes: 1 addition & 1 deletion script/cibuild
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/sh
#!/usr/bin/env bash

# script/cibuild: Setup environment for CI to run tests. This is primarily
# designed to run on the continuous integration server.
Expand Down
2 changes: 1 addition & 1 deletion script/lint
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/sh
#!/usr/bin/env bash

# script/lint: Run lint for application.

Expand Down
13 changes: 0 additions & 13 deletions script/server

This file was deleted.

2 changes: 1 addition & 1 deletion script/setup
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/sh
#!/usr/bin/env bash

# script/setup: Set up application for the first time after cloning, or set it
# back to the initial first unused state.
Expand Down
2 changes: 1 addition & 1 deletion script/test
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/sh
#!/usr/bin/env bash

# script/test: Run test suite for application. Optionally pass in a path to an
# individual test file to run a single test.
Expand Down
2 changes: 1 addition & 1 deletion script/update
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/sh
#!/usr/bin/env bash

# script/update: Update application to run for its current checkout.

Expand Down