-
Notifications
You must be signed in to change notification settings - Fork 1
41 lines (38 loc) · 1.5 KB
/
test.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
name: Dagger test
on:
push:
env:
# The Dagger CLI uses the DAGGER_CLOUD_TOKEN environment variable to authenticate with Dagger Cloud
DAGGER_CLOUD_TOKEN: ${{ secrets.DAGGER_CLOUD_TOKEN }}
jobs:
build:
name: build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Install Dagger CLI
run: cd /usr/local && { curl -L https://dl.dagger.io/dagger/install.sh | sh; cd -; }
- name: Display Helm module functions
run: dagger functions -m helm/
- name: Run module tests
run: dagger -m tests/ call all
- name: Run module integration tests
env:
TEST_HELM_REGISTRY_URL: ${{ secrets.TEST_HELM_REGISTRY_URL }}
TEST_HELM_REGISTRY_REPOSITORY: ${{ secrets.TEST_HELM_REGISTRY_REPOSITORY }}
TEST_HELM_REGISTRY_HELM_USER: ${{ secrets.TEST_HELM_REGISTRY_HELM_USER }}
TEST_HELM_REGISTRY_HELM_PASSWORD: ${{ secrets.TEST_HELM_REGISTRY_HELM_PASSWORD }}
run: |
dagger -m tests/ \
call helm-packagepush \
--registry ${TEST_HELM_REGISTRY_URL} \
--repository ${TEST_HELM_REGISTRY_REPOSITORY} \
--username ${TEST_HELM_REGISTRY_HELM_USER} \
--password env:TEST_HELM_REGISTRY_HELM_PASSWORD
- name: Display go examples module functions
run: dagger -m helm/examples/go/ functions
- name: Test shell examples
run: |
source helm/examples/shell/examples.sh
helm_test
helm_version