mirror of
https://github.com/zkldi/Tachi.git
synced 2026-10-06 22:07:58 +03:00
document and modify node.js.yml
This commit is contained in:
Vendored
+29
-18
@@ -15,28 +15,39 @@ env:
|
||||
|
||||
on:
|
||||
push:
|
||||
branches: [ master ]
|
||||
branches: [master]
|
||||
pull_request:
|
||||
branches: [ master ]
|
||||
branches: [master]
|
||||
|
||||
jobs:
|
||||
build:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- uses: actions/checkout@v2
|
||||
|
||||
- name: Test on Node.js 15
|
||||
uses: actions/setup-node@v2
|
||||
with:
|
||||
node-version: 15.x
|
||||
|
||||
- uses: pnpm/action-setup@v2.0.1
|
||||
with:
|
||||
version: 6.0.2
|
||||
|
||||
- uses: supercharge/mongodb-github-action@1.4.1
|
||||
- uses: supercharge/redis-github-action@1.1.0
|
||||
|
||||
- run: pnpm i
|
||||
- run: pnpm lint
|
||||
- run: pnpm test
|
||||
# install node15
|
||||
- name: Test on Node.js 15
|
||||
uses: actions/setup-node@v2
|
||||
with:
|
||||
node-version: 15.x
|
||||
|
||||
# install pnpm
|
||||
- uses: pnpm/action-setup@v2.0.1
|
||||
with:
|
||||
version: 6.0.2
|
||||
|
||||
# configure external dbs
|
||||
- uses: supercharge/mongodb-github-action@1.4.1
|
||||
- uses: supercharge/redis-github-action@1.1.0
|
||||
|
||||
# install deps
|
||||
- run: pnpm i
|
||||
|
||||
# for the time being, disable lint checking.
|
||||
# - run: pnpm lint
|
||||
|
||||
# enable indexing for our testingdb, this results in faster action time.
|
||||
- run: ts-node scripts/set-indexes.ts
|
||||
|
||||
# run tests
|
||||
- run: pnpm test
|
||||
|
||||
Reference in New Issue
Block a user