Skip to content

Commit 9f8d75a

Browse files
committed
tests and checks
1 parent 5c2c84c commit 9f8d75a

File tree

2 files changed

+29
-10
lines changed

2 files changed

+29
-10
lines changed
Lines changed: 28 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,35 @@
1-
name: Build
1+
name: ci
22
on:
33
- push
44
env:
55
TARGET: ${{ github.ref == 'refs/heads/main' && 'wallet-gateway' || 'wallet-gateway-unstable' }}
66
defaults:
77
run:
8-
shell: nix-shell --run "exec bash {0}"
8+
shell: nix-shell --run "exec bash -euo pipefail {0}"
9+
910
jobs:
10-
Build:
11+
check:
12+
runs-on: digital-asset-wallet-gateway
13+
permissions:
14+
contents: read
15+
issues: read
16+
checks: write
17+
steps:
18+
- uses: actions/checkout@v5
19+
- name: Helm unittests
20+
run: make test
21+
- name: Check schema
22+
run: |
23+
make generate
24+
out="$(git status --porcelain)"
25+
if [ ! -z "${out}" ]; then
26+
echo "Helm schema needs to be re-generated, please run 'make generate'"
27+
echo "${out}"
28+
exit 1
29+
fi
30+
echo "No changes"
31+
32+
docker-build:
1133
runs-on: digital-asset-wallet-gateway
1234
permissions:
1335
contents: read
@@ -20,16 +42,12 @@ jobs:
2042
registry: ghcr.io
2143
username: ${{ github.actor }}
2244
password: ${{ secrets.GITHUB_TOKEN }}
23-
- id: version
45+
- name: Get Version
46+
id: version
2447
run: echo "version=$(<VERSION)" | tee -a "${GITHUB_OUTPUT}"
25-
- name: Docker Build
48+
- name: Docker Build and Publish
2649
uses: docker/build-push-action@v6
2750
with:
2851
build-args: version=${{ steps.version.outputs.version }}
2952
push: true
3053
tags: ghcr.io/digital-asset/${{ env.TARGET }}/docker/wallet-gateway:v${{ steps.version.outputs.version }}
31-
- name: Test Nix
32-
run: |
33-
which helm
34-
helm version
35-
helm plugin list

charts/wallet-gateway/values.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,3 +11,4 @@ store:
1111
database: store.sqlite
1212
# @schema item: object; itemProperties:{"auth":{"type":"object","properties":{"admin":{"type":"object","properties":{"clientId":{"type":"string"},"clientSecret":{"type":"string"}},"additionalProperties":false},"audience":{"type":"string"},"clientId":{"type":"string"},"clientSecret":{"type":"string"},"configUrl":{"type":"string"},"grantType":{"type":"string"},"identityProviderId":{"type":"string"},"issuer":{"type":"string"},"scope":{"type":"string"},"tokenUrl":{"type":"string"},"type":{"type":"string"}},"additionalProperties":false},"chainId":{"type":"string"},"description":{"type":"string"},"ledgerApi":{"type":"object","properties":{"baseUrl":{"type":"string"}},"additionalProperties":false},"name":{"type":"string"},"synchronizerId":{"type":"string"}}
1313
networks: []
14+
goofy: ""

0 commit comments

Comments
 (0)