Skip to content

Merge pull request #61 from wanadev/dependabot/npm_and_yarn/express-4… #84

Merge pull request #61 from wanadev/dependabot/npm_and_yarn/express-4…

Merge pull request #61 from wanadev/dependabot/npm_and_yarn/express-4… #84

Workflow file for this run

name: "Tests"
on:
push:
paths:
- "lib/**"
- "server/**"
- "test/**"
- ".github/workflows/tests.yml"
- "package.json"
- "package-lock.json"
pull_request:
paths:
- "lib/**"
- "server/**"
- "test/**"
- ".github/workflows/tests.yml"
- "package.json"
- "package-lock.json"
jobs:
build:
name: "Run tests"
runs-on: ubuntu-latest
steps:
- name: "Checkout the repository"
uses: actions/checkout@v4
- name: "Set up Node 18"
uses: actions/setup-node@v4
with:
node-version: 18
- name: "Install Node dependencies"
run: |
npm install
- name: "Start the test server"
run: |
npx pm2 start -f test/env/test-server.js --name=obsidian-proxy-server &
- name: "Run lint"
run: |
npm run lint
- name: "Run tests"
run: |
npm run test
- name: "Stop the test server"
run: |
npx pm2 kill