Skip to content

Commit 8d5db52

Browse files
Reorganise actions
1 parent fb3c913 commit 8d5db52

5 files changed

Lines changed: 52 additions & 23 deletions

File tree

Lines changed: 1 addition & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -1,35 +1,13 @@
1-
name: CI
1+
name: Integration Tests
22

33
on:
44
push:
5-
pull_request:
65
branches: [main]
76

87
jobs:
9-
unit-tests:
10-
name: Unit Tests
11-
runs-on: ubuntu-latest
12-
steps:
13-
- uses: actions/checkout@v4
14-
15-
- name: Install Helm
16-
uses: azure/setup-helm@v4
17-
with:
18-
version: v3.18.4
19-
20-
- name: Install helm-unittest plugin
21-
run: helm plugin install https://github.com/helm-unittest/helm-unittest
22-
23-
- name: Run unit tests
24-
run: |
25-
helm unittest ./charts/ontoserver
26-
helm unittest ./charts/ontoserver-extras
27-
helm unittest ./charts/ontoserver-indexer
28-
298
integration-tests:
309
name: Integration Tests
3110
runs-on: ubuntu-latest
32-
if: github.ref == 'refs/heads/main'
3311
steps:
3412
- uses: actions/checkout@v4
3513

.github/workflows/release.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,15 @@ jobs:
3636
env:
3737
CR_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
3838

39+
- name: Publish artifacthub-repo.yml to gh-pages
40+
run: |
41+
git fetch origin gh-pages
42+
git checkout gh-pages
43+
git checkout ${{ github.sha }} -- artifacthub-repo.yml
44+
git add artifacthub-repo.yml
45+
git diff --staged --quiet || git commit -m "Update artifacthub-repo.yml [skip ci]"
46+
git push origin gh-pages
47+
3948
push-charts-oci:
4049
name: Push Helm Charts to OCI
4150
runs-on: ubuntu-latest

.github/workflows/unit-tests.yml

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
name: Unit Tests
2+
3+
on:
4+
push:
5+
pull_request:
6+
branches: [main]
7+
8+
jobs:
9+
unit-tests:
10+
name: Unit Tests
11+
runs-on: ubuntu-latest
12+
steps:
13+
- uses: actions/checkout@v4
14+
15+
- name: Install Helm
16+
uses: azure/setup-helm@v4
17+
with:
18+
version: v3.18.4
19+
20+
- name: Install helm-unittest plugin
21+
run: helm plugin install https://github.com/helm-unittest/helm-unittest
22+
23+
- name: Run unit tests
24+
run: |
25+
helm unittest ./charts/ontoserver
26+
helm unittest ./charts/ontoserver-extras
27+
helm unittest ./charts/ontoserver-indexer

README.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
11
# Ontoserver Deployment
22

3+
[![Unit Tests](https://github.com/aehrc/ontoserver-deploy/actions/workflows/unit-tests.yml/badge.svg)](https://github.com/aehrc/ontoserver-deploy/actions/workflows/unit-tests.yml)
4+
[![Integration Tests](https://github.com/aehrc/ontoserver-deploy/actions/workflows/integration-tests.yml/badge.svg)](https://github.com/aehrc/ontoserver-deploy/actions/workflows/integration-tests.yml)
5+
[![Artifact Hub](https://img.shields.io/endpoint?url=https://artifacthub.io/badge/package/helm/ontoserver/ontoserver)](https://artifacthub.io/packages/helm/ontoserver/ontoserver)
6+
[![Artifact Hub](https://img.shields.io/endpoint?url=https://artifacthub.io/badge/package/helm/ontoserver/ontoserver-extras)](https://artifacthub.io/packages/helm/ontoserver/ontoserver-extras)
7+
[![Artifact Hub](https://img.shields.io/endpoint?url=https://artifacthub.io/badge/package/helm/ontoserver/ontoserver-indexer)](https://artifacthub.io/packages/helm/ontoserver/ontoserver-indexer)
8+
39
Deployment resources for [Ontoserver](https://ontoserver.csiro.au) — a FHIR terminology server — across different platforms and technologies.
410

511
| Directory | Description |

artifacthub-repo.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
# Artifact Hub repository metadata
2+
# Register this repository at https://artifacthub.io/control-panel/repositories
3+
# pointing to: https://aehrc.github.io/ontoserver-deploy
4+
# Then fill in the repositoryID assigned by Artifact Hub.
5+
#
6+
# repositoryID: <uuid-assigned-by-artifacthub>
7+
owners:
8+
- name: CSIRO AEHRC
9+
email: ontoserver-support@csiro.au

0 commit comments

Comments
 (0)