enable ci #5
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
name: CI | |
on: | |
push: | |
branches: [master] | |
pull_request: | |
branches: [develop] | |
jobs: | |
build: | |
runs-on: jedi-self-hosted | |
steps: | |
- name: checkout current repo | |
uses: actions/checkout@v3 | |
- name: checkout jedicmake | |
uses: actions/checkout@v3 | |
with: | |
path: ci/jedicmake | |
repository: JCSDA-internal/jedi-cmake | |
submodules: true | |
token: ${{ secrets.GH_PAT }} | |
- name: checkout oops | |
uses: actions/checkout@v3 | |
with: | |
path: ci/oops | |
repository: JCSDA-internal/oops | |
token: ${{ secrets.GH_PAT }} | |
- name: matching branch checkout attempt oops ${{ github.head_ref }} | |
if: github.event_name == 'pull_request' | |
run: ./ci/get-ref-branch ./ci/oops | |
- name: checkout monio | |
uses: actions/checkout@v3 | |
with: | |
path: ci/monio | |
repository: MetOffice/monio | |
token: ${{ secrets.GH_PAT }} | |
- name: matching branch checkout attempt monio ${{ github.head_ref }} | |
if: github.event_name == 'pull_request' | |
run: ./ci/get-ref-branch ./ci/monio | |
- name: build and test | |
run: | | |
az acr login --name ngmssboxjediacr | |
docker run --rm \ | |
--entrypoint=/usr/local/src/monio-ci/ci/build-and-test \ | |
--workdir=/usr/local/src/monio-ci/ci \ | |
--volume $PWD:/usr/local/src/monio-ci \ | |
'ngmssboxjediacr.azurecr.io/jedibase:alma9' |