mirror of
https://github.com/zkldi/Tachi.git
synced 2026-10-05 05:18:12 +03:00
fix: github actions
This commit is contained in:
@@ -12,9 +12,6 @@ on:
|
||||
jobs:
|
||||
docker-push:
|
||||
runs-on: ubuntu-latest
|
||||
defaults:
|
||||
run:
|
||||
working-directory: ./bot
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v3
|
||||
@@ -46,9 +43,6 @@ jobs:
|
||||
run: echo ${{ steps.docker_build.outputs.digest }}
|
||||
deploy:
|
||||
runs-on: ubuntu-latest
|
||||
defaults:
|
||||
run:
|
||||
working-directory: ./bot
|
||||
needs: [docker-push]
|
||||
steps:
|
||||
- name: Deploy
|
||||
|
||||
@@ -12,25 +12,21 @@ on:
|
||||
jobs:
|
||||
deploy:
|
||||
runs-on: ubuntu-latest
|
||||
defaults:
|
||||
run:
|
||||
working-directory: ./common
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v2
|
||||
|
||||
- name: Install Node.js 16
|
||||
uses: actions/setup-node@v2
|
||||
- uses: pnpm/action-setup@v2
|
||||
with:
|
||||
node-version: 16.x
|
||||
version: latest
|
||||
|
||||
- name: Install PNPM
|
||||
uses: pnpm/action-setup@v2.0.1
|
||||
- uses: actions/setup-node@v3
|
||||
with:
|
||||
version: 6.0.2
|
||||
|
||||
- name: Install Dependencies
|
||||
run: pnpm i
|
||||
node-version: 16
|
||||
cache: pnpm
|
||||
|
||||
- name: Install dependencies
|
||||
run: pnpm --filter tachi-common... --filter . install
|
||||
|
||||
- name: Run Tests
|
||||
run: pnpm test
|
||||
run: pnpm --filter tachi-common test
|
||||
|
||||
@@ -20,28 +20,24 @@ on:
|
||||
jobs:
|
||||
test:
|
||||
runs-on: ubuntu-latest
|
||||
defaults:
|
||||
run:
|
||||
working-directory: ./database-seeds/scripts
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v2
|
||||
|
||||
- name: Install Node.js 16
|
||||
uses: actions/setup-node@v2
|
||||
- uses: pnpm/action-setup@v2
|
||||
with:
|
||||
node-version: 16.x
|
||||
version: latest
|
||||
|
||||
- name: Install PNPM
|
||||
uses: pnpm/action-setup@v2.0.1
|
||||
- uses: actions/setup-node@v3
|
||||
with:
|
||||
version: 6.0.2
|
||||
|
||||
- name: Install Dependencies
|
||||
run: pnpm i
|
||||
node-version: 16
|
||||
cache: pnpm
|
||||
|
||||
- name: Install dependencies
|
||||
run: pnpm --filter tachi-database-seeds... --filter . install
|
||||
|
||||
- name: Run Tests
|
||||
run: pnpm test
|
||||
run: pnpm --filter tachi-database-seeds test
|
||||
env:
|
||||
NODE_ENV: "test"
|
||||
|
||||
@@ -49,9 +45,6 @@ jobs:
|
||||
runs-on: ubuntu-latest
|
||||
needs: [test]
|
||||
if: github.event_name == 'push'
|
||||
defaults:
|
||||
run:
|
||||
working-directory: ./database-seeds/scripts
|
||||
steps:
|
||||
- name: Sync Staging Database
|
||||
if: github.ref == 'refs/heads/staging'
|
||||
|
||||
@@ -11,9 +11,6 @@ on:
|
||||
jobs:
|
||||
docker-push:
|
||||
runs-on: ubuntu-latest
|
||||
defaults:
|
||||
run:
|
||||
working-directory: ./github-bot
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v3
|
||||
@@ -46,9 +43,6 @@ jobs:
|
||||
run: echo ${{ steps.docker_build.outputs.digest }}
|
||||
deploy:
|
||||
runs-on: ubuntu-latest
|
||||
defaults:
|
||||
run:
|
||||
working-directory: ./github-bot
|
||||
needs: [docker-push]
|
||||
steps:
|
||||
- name: Deploy
|
||||
|
||||
@@ -20,9 +20,6 @@ on:
|
||||
jobs:
|
||||
test:
|
||||
runs-on: ubuntu-latest
|
||||
defaults:
|
||||
run:
|
||||
working-directory: ./server
|
||||
env:
|
||||
NODE_ENV: "test"
|
||||
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
|
||||
@@ -39,14 +36,14 @@ jobs:
|
||||
cache: pnpm
|
||||
|
||||
- name: Install dependencies
|
||||
run: pnpm --filter tachi-server... --filter . install --frozen-lockfile
|
||||
run: pnpm --filter tachi-server... --filter . install
|
||||
|
||||
# configure external dbs
|
||||
- uses: supercharge/mongodb-github-action@1.4.1
|
||||
- uses: supercharge/redis-github-action@1.1.0
|
||||
|
||||
- name: Run tests
|
||||
run: pnpm test
|
||||
run: pnpm --filter tachi-server test
|
||||
env:
|
||||
NODE_ENV: "test"
|
||||
PORT: 8080
|
||||
|
||||
Reference in New Issue
Block a user