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
10 changes: 10 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,13 @@ jobs:
name: Build for testing
- run: ./scripts/test-without-building.sh
name: Test

check-headers:
runs-on: macOS-latest
steps:
- uses: actions/checkout@v1
- name: Check headers
run: |
chmod +x ./check_headers.sh
./check_headers.sh
shell: bash
Original file line number Diff line number Diff line change
@@ -1,9 +1,4 @@
//
// OptimoveNotificationExtension.h
// OptimoveNotificationExtension
//
// Created by Christopher Wyllie on 21/04/2022.
//
// Copyright © 2022 Optimove. All rights reserved.

#import <Foundation/Foundation.h>

Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,4 @@
//
// OptimoveNotificationExtensionTests.swift
// OptimoveNotificationExtensionTests
//
// Created by Christopher Wyllie on 21/04/2022.
//
// Copyright © 2022 Optimove. All rights reserved.

import XCTest
@testable import OptimoveNotificationServiceExtension
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@

// Copyright © 2022 Optimove. All rights reserved.

import Foundation
import CoreLocation
Expand Down
3 changes: 2 additions & 1 deletion check_headers.sh
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,8 @@ options=(

git grep "${options[@]}" -- \
'*.'{h,m,mm,swift} \
':(exclude)**/third_party/**'
':(exclude)**/third_party/**' \
':(exclude)Package.swift'
if [[ $? == 0 ]]; then
echo "ERROR: Missing copyright notices in the files above. Please fix."
exit 1
Expand Down