Feature/182 setup actions (#186)
* Create scripts * Create github workflows * Create initial DB migration script * Make default bot prefix configurable * Add bot token fetcher
This commit is contained in:
parent
cd666d24fd
commit
7decd28dc9
42 changed files with 525 additions and 83 deletions
28
.github/workflows/deployment.yml
vendored
Normal file
28
.github/workflows/deployment.yml
vendored
Normal file
|
@ -0,0 +1,28 @@
|
|||
name: deployment
|
||||
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- main
|
||||
workflow_dispatch:
|
||||
|
||||
jobs:
|
||||
build:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- name: Build and Test
|
||||
uses: actions/setup-node@v1
|
||||
with:
|
||||
node-version: 16.x
|
||||
- run: yarn install --frozen-lockfile
|
||||
- run: yarn build
|
||||
- run: yarn test
|
||||
- name: Deploy Production
|
||||
uses: D3rHase/ssh-command-action@v0.2.1
|
||||
with:
|
||||
HOST: ${{secrets.HOST}}
|
||||
PORT: ${{secrets.PORT}}
|
||||
USER: ${{secrets.USER}}
|
||||
PRIVATE_SSH_KEY: ${{secrets.PRIVATE_SSH_KEY}}
|
||||
COMMAND: ${{secrets.PROD_COMMAND}}
|
20
.github/workflows/integration.yml
vendored
Normal file
20
.github/workflows/integration.yml
vendored
Normal file
|
@ -0,0 +1,20 @@
|
|||
name: integration
|
||||
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- feature/*
|
||||
- hotfix/*
|
||||
|
||||
jobs:
|
||||
build:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- name: Build and Test
|
||||
uses: actions/setup-node@v1
|
||||
with:
|
||||
node-version: 16.x
|
||||
- run: yarn install --frozen-lockfile
|
||||
- run: yarn build
|
||||
- run: yarn test
|
28
.github/workflows/staging.yml
vendored
Normal file
28
.github/workflows/staging.yml
vendored
Normal file
|
@ -0,0 +1,28 @@
|
|||
name: staging
|
||||
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- develop
|
||||
workflow_dispatch:
|
||||
|
||||
jobs:
|
||||
build:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- name: Build and Test
|
||||
uses: actions/setup-node@v1
|
||||
with:
|
||||
node-version: 16.x
|
||||
- run: yarn install --frozen-lockfile
|
||||
- run: yarn build
|
||||
- run: yarn test
|
||||
- name: Deploy Staging
|
||||
uses: D3rHase/ssh-command-action@v0.2.1
|
||||
with:
|
||||
HOST: ${{secrets.HOST}}
|
||||
PORT: ${{secrets.PORT}}
|
||||
USER: ${{secrets.USER}}
|
||||
PRIVATE_SSH_KEY: ${{secrets.PRIVATE_SSH_KEY}}
|
||||
COMMAND: ${{secrets.STAGE_COMMAND}}
|
27
.github/workflows/testing.yml
vendored
27
.github/workflows/testing.yml
vendored
|
@ -1,27 +0,0 @@
|
|||
name: Testing
|
||||
|
||||
on:
|
||||
pull_request:
|
||||
branches:
|
||||
- main
|
||||
- develop
|
||||
|
||||
jobs:
|
||||
build:
|
||||
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
strategy:
|
||||
matrix:
|
||||
node-version: [16.x]
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- name: Use Node.js ${{ matrix.node-version }}
|
||||
uses: actions/setup-node@v1
|
||||
with:
|
||||
node-version: ${{ matrix.node-version }}
|
||||
- run: yarn install
|
||||
- run: yarn build
|
||||
- run: yarn test
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue