Add workflow for pushes & pull requests

Co-authored-by: Evan Hahn <69474926+EvanHahn-Signal@users.noreply.github.com>
This commit is contained in:
Max Radermacher 2022-07-25 08:38:21 -07:00 committed by GitHub
parent 5a9c6be791
commit 2f875bfa87
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 33 additions and 0 deletions

20
.github/workflows/main.yml vendored Normal file
View File

@ -0,0 +1,20 @@
name: CI
on:
pull_request:
push:
branches:
- main
jobs:
build_and_test:
name: Build and Test
runs-on: macos-latest
steps:
- name: Checkout Repo
uses: actions/checkout@v3
- name: Run pod lib lint
run: ./bin/build_and_test.sh

View File

@ -0,0 +1,6 @@
//
// Copyright (c) 2022 Open Whisper Systems. All rights reserved.
//
ONLY_ACTIVE_ARCH = YES
OTHER_SWIFT_FLAGS = $(inherited) -DTESTABLE_BUILD

7
bin/build_and_test.sh Executable file
View File

@ -0,0 +1,7 @@
#!/bin/sh
set -e
set -u
set -o pipefail
XCODE_XCCONFIG_FILE=SignalCoreKit/CI.xcconfig \
pod lib lint --verbose --allow-warnings