Skip to content

Commit

Permalink
ci(e2e): ci
Browse files Browse the repository at this point in the history
  • Loading branch information
BrycensRanch committed Mar 18, 2023
1 parent bcc2a58 commit 849039a
Show file tree
Hide file tree
Showing 3 changed files with 354 additions and 1 deletion.
1 change: 1 addition & 0 deletions .github/workflows/gradle.yml
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,7 @@ jobs:
continue-on-error: true
env:
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}
DISCORDSRV_TOKEN: ${{ secrets.DISCORDSRV_TOKEN }}

# - name: Create Coverage
# run: ./gradlew jacocoTestReport
Expand Down
4 changes: 3 additions & 1 deletion e2e/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,9 @@
"dev": "node-dev --loader ts-node/esm bot.ts",
"start": "node dist/bot.js",
"build": "tsc",
"e2e": "concurrently \"cd .. && .\/gradlew runServer\" \"pnpm sleep 45s && pnpm build && pnpm start\""
"yq": "wget https://github.com/mikefarah/yq/releases/latest/download/yq_linux_amd64 -O /usr/bin/yq && chmod +x /usr/bin/yq",
"pree2e": "pnpm yq && yq -i '.BotToken = strenv(DISCORDSRV_TOKEN)' ../run/config/config.yml && shx mkdir ../run/plugins/DiscordSRV && mv ../run/config/config.yml ../run/plugins/DiscordSRV",
"e2e": "concurrently \"cd .. && .\/gradlew runServer\" \"sleep 90 && pnpm build && pnpm start\""
},
"keywords": [],
"author": "",
Expand Down
Loading

0 comments on commit 849039a

Please sign in to comment.