mirror of
https://github.com/koreanbots/core.git
synced 2025-12-16 06:20:24 +00:00
51 lines
1.2 KiB
YAML
51 lines
1.2 KiB
YAML
name: CI
|
|
on:
|
|
- pull_request
|
|
- push
|
|
jobs:
|
|
eslint:
|
|
name: ESLint
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v1
|
|
- name: install node v14
|
|
uses: actions/setup-node@v1
|
|
with:
|
|
node-version: 14
|
|
- name: yarn install
|
|
run: yarn install
|
|
- name: run eslint
|
|
run: yarn lint
|
|
env:
|
|
CI: true
|
|
build:
|
|
name: Test Build
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v1
|
|
- name: install node v14
|
|
uses: actions/setup-node@v1
|
|
with:
|
|
node-version: 14
|
|
- name: yarn install
|
|
run: yarn install
|
|
- name: Build
|
|
run: yarn build
|
|
env:
|
|
CI: true
|
|
test:
|
|
needs:
|
|
- ESLint
|
|
- Test Build
|
|
name: Docker Image CI
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
- name: install node v14
|
|
uses: actions/setup-node@v1
|
|
with:
|
|
node-version: 14
|
|
- name: Create needed files
|
|
run: touch public.pem & touch .env.production.local & echo 'MYSQL_ROOT_PASSWORD=YOUSHALLNOTPASS' > .env.mysql.local & touch private.key & echo '{"tester":"DEMO_KEY"}' > secret.json
|
|
- name: Docker Compose
|
|
run: docker-compose up -d |