mirror of
https://github.com/zkldi/Tachi.git
synced 2026-10-01 11:28:13 +03:00
Obviously given the state of github yaml-engineering there's no way I'm going to get this right on the first try but hey ho. things *should* work.
41 lines
779 B
YAML
41 lines
779 B
YAML
name: Database-Seeds CI/CD
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- "main"
|
|
paths:
|
|
- "database-seeds/**"
|
|
- "common/**"
|
|
pull_request:
|
|
branches:
|
|
- "main"
|
|
paths:
|
|
- "database-seeds/**"
|
|
- "common/**"
|
|
workflow_dispatch:
|
|
|
|
jobs:
|
|
test:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@v2
|
|
|
|
- uses: pnpm/action-setup@v2
|
|
with:
|
|
version: 7.20.0
|
|
|
|
- uses: actions/setup-node@v3
|
|
with:
|
|
node-version: 16
|
|
cache: pnpm
|
|
|
|
- name: Install dependencies
|
|
run: pnpm --filter tachi-database-seeds-scripts... --filter . install
|
|
|
|
- name: Run Tests
|
|
run: pnpm --filter tachi-database-seeds-scripts test
|
|
env:
|
|
NODE_ENV: "test"
|