From 2d9891bfb857bf2aa8b91af45f6b35c359844bb9 Mon Sep 17 00:00:00 2001 From: Christoph Raaflaub Date: Mon, 19 Aug 2024 17:21:23 +0200 Subject: [PATCH] run tests in github --- .github/workflows/test.yml | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 .github/workflows/test.yml diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml new file mode 100644 index 0000000..0960565 --- /dev/null +++ b/.github/workflows/test.yml @@ -0,0 +1,21 @@ +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: + test: + name: test + 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 module functions + run: dagger functions -m helm/ + - name: Run module tests + run: dagger -m tests/ call test