From 65d7c568c81dddb075d42bf6144387afb1e2eff6 Mon Sep 17 00:00:00 2001 From: Jacob Hearst Date: Thu, 11 May 2023 11:21:46 -0500 Subject: [PATCH 1/2] Update checkout action version, add CODEOWNERS --- .github/workflows/build-and-test.yml | 6 +++--- CODEOWNERS | 1 + 2 files changed, 4 insertions(+), 3 deletions(-) create mode 100644 CODEOWNERS diff --git a/.github/workflows/build-and-test.yml b/.github/workflows/build-and-test.yml index 8867c66..d2ba76d 100644 --- a/.github/workflows/build-and-test.yml +++ b/.github/workflows/build-and-test.yml @@ -7,7 +7,7 @@ jobs: name: SwiftPM build and test runs-on: macos-latest steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v3 - name: Build swift packages run: swift build -v - name: Run tests @@ -16,7 +16,7 @@ jobs: name: Xcode project build and test runs-on: macos-latest steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v3 - name: Build xcode project run: xcodebuild build -scheme 'SubprocessMocks' -derivedDataPath .build - name: Run tests @@ -25,6 +25,6 @@ jobs: name: Pod lib lint runs-on: macos-latest steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v3 - name: Lib lint run: pod lib lint --verbose Subprocess.podspec diff --git a/CODEOWNERS b/CODEOWNERS new file mode 100644 index 0000000..bc04cd9 --- /dev/null +++ b/CODEOWNERS @@ -0,0 +1 @@ +* @jamf/apple-natives-write \ No newline at end of file From e4a42b85a9edccdc23aa44045e25ab89bb83c421 Mon Sep 17 00:00:00 2001 From: Jacob Hearst Date: Tue, 16 May 2023 07:56:02 -0500 Subject: [PATCH 2/2] Run workflow on push/pr to main --- .github/workflows/build-and-test.yml | 10 +++++++++- CODEOWNERS | 2 +- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build-and-test.yml b/.github/workflows/build-and-test.yml index d2ba76d..c2247dc 100644 --- a/.github/workflows/build-and-test.yml +++ b/.github/workflows/build-and-test.yml @@ -1,6 +1,14 @@ name: Build & Test -on: [push] +on: + workflow_dispatch: + push: + branches: + - main + pull_request: + branches: + - main + jobs: spm: diff --git a/CODEOWNERS b/CODEOWNERS index bc04cd9..b9ea4a3 100644 --- a/CODEOWNERS +++ b/CODEOWNERS @@ -1 +1 @@ -* @jamf/apple-natives-write \ No newline at end of file +* @jamf/apple-natives-write