diff --git a/.github/workflows/build-on-comment.yml b/.github/workflows/build-on-comment.yml index 7300330..4910f95 100644 --- a/.github/workflows/build-on-comment.yml +++ b/.github/workflows/build-on-comment.yml @@ -18,7 +18,14 @@ permissions: jobs: build-comment: - if: github.event.issue.pull_request != null && contains(github.event.comment.body, '/build') + if: >- + github.event.issue.pull_request != null && + contains(github.event.comment.body, '/build') && + ( + github.event.comment.author_association == 'OWNER' || + github.event.comment.author_association == 'MEMBER' || + github.event.comment.author_association == 'COLLABORATOR' + ) runs-on: macos-15 steps: - name: Check user permissions diff --git a/CD starter project/ContentView.swift b/CD starter project/ContentView.swift index 4f17114..440525e 100644 --- a/CD starter project/ContentView.swift +++ b/CD starter project/ContentView.swift @@ -18,7 +18,7 @@ struct ContentView: View { [.one, .two, .three, .add], [.zero, .decimal, .equals] ] - // + var body: some View { GeometryReader { geometry in ZStack { diff --git a/CD starter projectTests/CD_starter_projectTests.swift b/CD starter projectTests/CD_starter_projectTests.swift index acde99b..48fbb82 100644 --- a/CD starter projectTests/CD_starter_projectTests.swift +++ b/CD starter projectTests/CD_starter_projectTests.swift @@ -40,7 +40,7 @@ final class CDStarterProjectTests: XCTestCase { viewModel.tapOperation(.multiply) viewModel.tapNumber("4") viewModel.tapEquals() - // (2 + 3) * 4 = 20 + XCTAssertEqual(viewModel.formattedDisplay, "20") }