mirror of
https://github.com/koreanbots/core.git
synced 2026-02-01 17:20:24 +00:00
ci: updated ci stuff
This commit is contained in:
parent
df34687b81
commit
af2b065de8
37
.github/workflows/testing.yml
vendored
37
.github/workflows/testing.yml
vendored
@ -1,7 +1,10 @@
|
|||||||
name: CI
|
name: CI
|
||||||
on:
|
on:
|
||||||
- push
|
push:
|
||||||
- pull_request
|
pull_request:
|
||||||
|
branches:
|
||||||
|
- '*'
|
||||||
|
- '!master'
|
||||||
jobs:
|
jobs:
|
||||||
eslint:
|
eslint:
|
||||||
name: ESLint
|
name: ESLint
|
||||||
@ -29,19 +32,18 @@ jobs:
|
|||||||
node-version: 14
|
node-version: 14
|
||||||
- name: yarn install
|
- name: yarn install
|
||||||
run: yarn install
|
run: yarn install
|
||||||
- name: run jest
|
- name: Setup MySQL
|
||||||
run: yarn test
|
uses: getong/mariadb-action@v1.1
|
||||||
build:
|
|
||||||
name: Build
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
steps:
|
|
||||||
- uses: actions/checkout@v2
|
|
||||||
- name: install node v14
|
|
||||||
uses: actions/setup-node@v2
|
|
||||||
with:
|
with:
|
||||||
node-version: 14
|
mysql database: 'discordbots'
|
||||||
- name: yarn install
|
mysql root password: 'test'
|
||||||
run: yarn install
|
- name: Wait for MySQL
|
||||||
|
run: |
|
||||||
|
while ! mysqladmin ping --host=127.0.0.1 --password=test --silent; do
|
||||||
|
sleep 1
|
||||||
|
done
|
||||||
|
- name: Run Jest
|
||||||
|
run: yarn test
|
||||||
- name: Generate RSA Key Pair
|
- name: Generate RSA Key Pair
|
||||||
run: |
|
run: |
|
||||||
ssh-keygen -b 2048 -t rsa -f key -q -P ""
|
ssh-keygen -b 2048 -t rsa -f key -q -P ""
|
||||||
@ -57,7 +59,14 @@ jobs:
|
|||||||
- name: Build
|
- name: Build
|
||||||
run: yarn build
|
run: yarn build
|
||||||
env:
|
env:
|
||||||
|
NEXT_PUBLIC_SENTRY_SERVER_ROOT_DIR: ./api
|
||||||
|
SENTRY_ORG: koreanbots
|
||||||
|
SENTRY_PROJECT: v2
|
||||||
|
SENTRY_AUTH_TOKEN: ${{ secrets.SENTRY_AUTH_TOKEN }}
|
||||||
|
SOURCE_BRANCH: ${{ github.head_ref }}
|
||||||
|
SOURCE_COMMIT: ${{ github.sha }}
|
||||||
CI: true
|
CI: true
|
||||||
|
|
||||||
# docker:
|
# docker:
|
||||||
# needs:
|
# needs:
|
||||||
# - eslint
|
# - eslint
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user