From f8537d78bbc118f585cab0bbc9220da01eda8221 Mon Sep 17 00:00:00 2001 From: diamondburned Date: Sun, 13 Oct 2024 22:11:17 -0700 Subject: [PATCH] *: Fix GHA shell directive --- .github/workflows/test.yml | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index bb88e3b..bd1c363 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -11,6 +11,10 @@ on: default: false type: boolean +defaults: + run: + shell: nix develop -c bash -e {0} + jobs: generate: name: Generate @@ -22,7 +26,7 @@ jobs: - name: Generate run: | - nix develop -c go generate ./... + go generate ./... if ! git diff --exit-code; then if [[ $GITHUB_REF == refs/heads/main ]]; then @@ -47,7 +51,6 @@ jobs: - name: Build run: go build -v ./... - shell: nix develop -c {0} unit-test: name: Unit Test @@ -63,7 +66,6 @@ jobs: env: TEST_FLAGS: >- -v=${{ runner.debug && '1' || '0' }} - shell: nix develop -c {0} integration-test: name: Integration Test @@ -87,7 +89,6 @@ jobs: GUILD_ID: ${{ secrets.GUILD_ID }} VOICE_ID: ${{ secrets.VOICE_ID }} BOT_TOKEN: ${{ secrets.BOT_TOKEN }} - shell: nix develop -c {0} - name: Upload coverage profile uses: actions/upload-artifact@v3