From fbcca2dcf56b642a6f626af802520f63e76daf59 Mon Sep 17 00:00:00 2001 From: Brendan Conron Date: Tue, 17 Sep 2024 07:42:49 -0400 Subject: [PATCH 1/2] Create ci.yml --- .github/workflows/ci.yml | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 .github/workflows/ci.yml diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..8647b2f --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,22 @@ +# This workflow will build a Swift project +# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-swift + +name: Swift + +on: + push: + branches: [ "develop", "production" ] + pull_request: + branches: [ "develop", "production" ] + +jobs: + build: + + runs-on: macos-latest + + steps: + - uses: actions/checkout@v4 + - name: Build + run: swift build -v + - name: Run tests + run: swift test -v From 8766b668fb7e460eaf61debcac215abe260fc38d Mon Sep 17 00:00:00 2001 From: Brendan Conron Date: Tue, 17 Sep 2024 07:49:18 -0400 Subject: [PATCH 2/2] added cron schedule --- .github/workflows/ci.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 8647b2f..9742d28 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -8,6 +8,8 @@ on: branches: [ "develop", "production" ] pull_request: branches: [ "develop", "production" ] + schedule: + - cron: 0 0 * * * #trigger once a day, according to the cron syntax jobs: build: