From 5ea4eb5b17e9d967ed8bf997befa44712cb0b0fb Mon Sep 17 00:00:00 2001 From: Matthew Thompson Date: Mon, 25 Mar 2024 16:18:27 -0400 Subject: [PATCH] Add github and circleci files --- .circleci/config.yml | 25 ++++++++++++++++ .github/CODEOWNERS | 18 +++++++++++ .../PULL_REQUEST_TEMPLATE/auto_pr_to_mapl3.md | 10 +++++++ .github/workflows/push-to-develop.yml | 30 +++++++++++++++++++ 4 files changed, 83 insertions(+) create mode 100644 .circleci/config.yml create mode 100644 .github/CODEOWNERS create mode 100644 .github/PULL_REQUEST_TEMPLATE/auto_pr_to_mapl3.md create mode 100644 .github/workflows/push-to-develop.yml diff --git a/.circleci/config.yml b/.circleci/config.yml new file mode 100644 index 0000000..990004d --- /dev/null +++ b/.circleci/config.yml @@ -0,0 +1,25 @@ +version: 2.1 + +# Anchors in case we need to override the defaults from the orb +#baselibs_version: &baselibs_version v7.17.0 +#bcs_version: &bcs_version v11.4.0 + +orbs: + ci: geos-esm/circleci-tools@2 + +workflows: + build-test: + jobs: + # Build GEOSldas + - ci/build: + name: build-GEOSldas-on-<< matrix.compiler >> + context: + - docker-hub-creds + matrix: + parameters: + compiler: [ifort, gfortran] + #baselibs_version: *baselibs_version + repo: GEOSldas + checkout_fixture: true + mepodevelop: false + persist_workspace: false # Needs to be true to run fv3/gcm experiment, costs extra diff --git a/.github/CODEOWNERS b/.github/CODEOWNERS new file mode 100644 index 0000000..9b4ec79 --- /dev/null +++ b/.github/CODEOWNERS @@ -0,0 +1,18 @@ +# This is a comment. +# Each line is a file pattern followed by one or more owners. +# Order is important; the last matching pattern takes the most +# precedence. + +# LDAS Gatekeepers own all files +* @GEOS-ESM/ldas-gatekeepers + +# The LDAS gatekeepers and CMake should know/approve these +/.github/ @GEOS-ESM/cmake-team @GEOS-ESM/ldas-gatekeepers +/.circleci/ @GEOS-ESM/cmake-team @GEOS-ESM/ldas-gatekeepers +/.codebuild/ @GEOS-ESM/cmake-team @GEOS-ESM/ldas-gatekeepers + +# The GEOS CMake Team should be notified about changes to the CMakeLists.txt files in this repository +CMakeLists.txt @GEOS-ESM/cmake-team @GEOS-ESM/ldas-gatekeepers + +# The GEOS CMake Team should be notified about and approve config changes +/config/ @GEOS-ESM/cmake-team @GEOS-ESM/ldas-gatekeepers diff --git a/.github/PULL_REQUEST_TEMPLATE/auto_pr_to_mapl3.md b/.github/PULL_REQUEST_TEMPLATE/auto_pr_to_mapl3.md new file mode 100644 index 0000000..55020d7 --- /dev/null +++ b/.github/PULL_REQUEST_TEMPLATE/auto_pr_to_mapl3.md @@ -0,0 +1,10 @@ +## :memo: Automatic PR: `develop` → `release/MAPL-v3` + +### Description + + + +## :file_folder: Modified files + + + diff --git a/.github/workflows/push-to-develop.yml b/.github/workflows/push-to-develop.yml new file mode 100644 index 0000000..ebbd310 --- /dev/null +++ b/.github/workflows/push-to-develop.yml @@ -0,0 +1,30 @@ +name: Push to Develop + +on: + push: + branches: + - develop + +jobs: + pull_request: + name: Create Pull Request + runs-on: ubuntu-latest + steps: + - name: Checkout repo + uses: actions/checkout@v4 + with: + fetch-depth: 0 + - name: Run the action + uses: devops-infra/action-pull-request@v0.5.5 + with: + github_token: ${{ secrets.GITHUB_TOKEN }} + source_branch: develop + target_branch: release/MAPL-v3 + label: automatic,MAPL3,Skip Changelog + template: .github/PULL_REQUEST_TEMPLATE/auto_pr_to_mapl3.md + get_diff: true + assignee: ${{ github.actor }} + old_string: "" + new_string: ${{ github.event.commits[0].message }} + title: Auto PR - develop → MAPL-v3 - ${{ github.event.commits[0].message }} +