Add workflow for pushes & pull requests
Co-authored-by: Evan Hahn <69474926+EvanHahn-Signal@users.noreply.github.com>
This commit is contained in:
parent
5a9c6be791
commit
2f875bfa87
20
.github/workflows/main.yml
vendored
Normal file
20
.github/workflows/main.yml
vendored
Normal 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
|
||||
6
SignalCoreKit/CI.xcconfig
Normal file
6
SignalCoreKit/CI.xcconfig
Normal 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
7
bin/build_and_test.sh
Executable 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
|
||||
Loading…
Reference in New Issue
Block a user