mirror of
https://github.com/diamondburned/arikawa.git
synced 2024-12-02 20:02:53 +00:00
*: Fix GHA shell directive
This commit is contained in:
parent
e198c6e8f2
commit
f8537d78bb
9
.github/workflows/test.yml
vendored
9
.github/workflows/test.yml
vendored
|
@ -11,6 +11,10 @@ on:
|
||||||
default: false
|
default: false
|
||||||
type: boolean
|
type: boolean
|
||||||
|
|
||||||
|
defaults:
|
||||||
|
run:
|
||||||
|
shell: nix develop -c bash -e {0}
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
generate:
|
generate:
|
||||||
name: Generate
|
name: Generate
|
||||||
|
@ -22,7 +26,7 @@ jobs:
|
||||||
|
|
||||||
- name: Generate
|
- name: Generate
|
||||||
run: |
|
run: |
|
||||||
nix develop -c go generate ./...
|
go generate ./...
|
||||||
|
|
||||||
if ! git diff --exit-code; then
|
if ! git diff --exit-code; then
|
||||||
if [[ $GITHUB_REF == refs/heads/main ]]; then
|
if [[ $GITHUB_REF == refs/heads/main ]]; then
|
||||||
|
@ -47,7 +51,6 @@ jobs:
|
||||||
|
|
||||||
- name: Build
|
- name: Build
|
||||||
run: go build -v ./...
|
run: go build -v ./...
|
||||||
shell: nix develop -c {0}
|
|
||||||
|
|
||||||
unit-test:
|
unit-test:
|
||||||
name: Unit Test
|
name: Unit Test
|
||||||
|
@ -63,7 +66,6 @@ jobs:
|
||||||
env:
|
env:
|
||||||
TEST_FLAGS: >-
|
TEST_FLAGS: >-
|
||||||
-v=${{ runner.debug && '1' || '0' }}
|
-v=${{ runner.debug && '1' || '0' }}
|
||||||
shell: nix develop -c {0}
|
|
||||||
|
|
||||||
integration-test:
|
integration-test:
|
||||||
name: Integration Test
|
name: Integration Test
|
||||||
|
@ -87,7 +89,6 @@ jobs:
|
||||||
GUILD_ID: ${{ secrets.GUILD_ID }}
|
GUILD_ID: ${{ secrets.GUILD_ID }}
|
||||||
VOICE_ID: ${{ secrets.VOICE_ID }}
|
VOICE_ID: ${{ secrets.VOICE_ID }}
|
||||||
BOT_TOKEN: ${{ secrets.BOT_TOKEN }}
|
BOT_TOKEN: ${{ secrets.BOT_TOKEN }}
|
||||||
shell: nix develop -c {0}
|
|
||||||
|
|
||||||
- name: Upload coverage profile
|
- name: Upload coverage profile
|
||||||
uses: actions/upload-artifact@v3
|
uses: actions/upload-artifact@v3
|
||||||
|
|
Loading…
Reference in a new issue