-
-
Notifications
You must be signed in to change notification settings - Fork 12
executable file
·41 lines (34 loc) · 1.21 KB
/
test-build.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: Deployment Test Build
on:
pull_request:
branches: [dev, main, beta]
jobs:
test-deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Setup Node.js
uses: actions/setup-node@v3
with:
node-version: 18
- name: Install test env data
run: |
cp .env.example .env
echo ${{ secrets.TEST_TOKEN }} >> .env
echo ${{ secrets.TEST_SECRET }} >> .env
echo ${{ secrets.TEST_APPLICATION_ID }} >> .env
echo ${{ secrets.TEST_DEVELOPER_DISCORD_GUILD_ID }} >> .env
- name: Install important data
run: |
npm run start-prod
docker compose exec bot npm install --omit=dev
docker compose exec bot npm run alias-build
- name: Build
run: |
npm run restart-prod
- name: Stop Workflow
if: steps.check_condition.outputs.stop_workflow == 'true'
run: |
echo "Stopping workflow"
exit 0