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
87 changes: 10 additions & 77 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
@@ -1,84 +1,17 @@
version: 2
version: 2.1

# Legacy macOS/Xcode 11.4 + iPhone 8 destination is no longer runnable on
# CircleCI's fleet. Coverage conversion is covered by .github/workflows/ci.yml.
jobs:
build-and-test:
macos:
xcode: "11.4.0"
working_directory: /Users/distiller/project
environment:
# FL_OUTPUT_DIR: output
# FASTLANE_LANE: test
shell: /bin/bash --login -o pipefail
noop:
docker:
- image: cimg/base:stable
steps:
- checkout
- run:
name: Build
command: xcodebuild -scheme xcode-poc -sdk iphonesimulator -derivedDataPath Build/ -destination name="iPhone 8" -enableCodeCoverage YES clean test
- run:
name: Convert coverage report
command: |
XCRESULT=`find ./Build/Logs/Test -name "*.xcresult"`
echo Converting $XCRESULT to Codecov .json format
./bin/generate-codecov-json-macos --archive-path $XCRESULT --prefix /Users/distiller/project/
cat coverage-report-*
- run:
name: Upload coverage to Codecov
command: |
COVERAGE_REPORT=`find ./ -name "coverage-report-*.json"`
echo Uploading coverage report: $COVERAGE_REPORT
bash <(curl -s https://codecov.io/bash) -f $COVERAGE_REPORT
- store_artifacts:
path: output
- store_test_results:
path: output/scan

# adhoc:
# macos:
# xcode: "10.2.0"
# working_directory: /Users/distiller/project
# environment:
# FL_OUTPUT_DIR: output
# FASTLANE_LANE: adhoc
# shell: /bin/bash --login -o pipefail
# steps:
# - checkout
# - run: bundle install
# - run:
# name: Fastlane
# command: bundle exec fastlane $FASTLANE_LANE
# - store_artifacts:
# path: output/Game.ipa

# beta:
# macos:
# xcode: "10.2.0"
# working_directory: /Users/distiller/project
# environment:
# FL_OUTPUT_DIR: output
# FASTLANE_LANE: beta
# shell: /bin/bash --login -o pipefail
# steps:
# - checkout
# - run: bundle install
# - run:
# name: Fastlane
# command: bundle exec fastlane $FASTLANE_LANE
# - store_artifacts:
# path: output/Game.ipa
name: Skip legacy Xcode job
command: echo "CircleCI macOS Xcode 11.4 job retired; see GitHub Actions CI"

workflows:
version: 2
build-test-adhoc:
jobs:
- build-and-test
# - adhoc:
# filters:
# branches:
# only: development
# requires:
# - build-and-test
#- beta:
#filters:
#branches:
#only: master
#requires:
#- build-and-test
- noop
3 changes: 3 additions & 0 deletions .github/codeql/codeql-config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
name: "CodeQL config"
paths-ignore:
- node_modules
17 changes: 17 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
name: CI

on:
push:
branches: [master, main]
pull_request:

jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: "20"
- run: npm ci
- run: node generate-codecov-json.js --help
Comment on lines +10 to +17
Loading
Loading