eslint + workflow formatting

- appropriate job names
- only trigger on pushes to master branch & PRs
- conform to formatting
This commit is contained in:
Michael C
2021-12-20 23:04:41 -05:00
parent 7aa9524835
commit 3dd9024cc7
8 changed files with 31 additions and 19 deletions

View File

@@ -1,9 +1,13 @@
name: SQLite CI
on: [push, pull_request]
on:
push:
branches:
- master
pull_request:
jobs:
build:
test:
name: Run Tests with SQLite
runs-on: ubuntu-latest
@@ -12,7 +16,6 @@ jobs:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
- run: npm install
- name: Run Tests
timeout-minutes: 5
run: npm test

View File

@@ -1,9 +1,13 @@
name: Linting
on: [push, pull_request]
on:
push:
branches:
- master
pull_request:
jobs:
build:
lint:
name: Lint with ESLint
runs-on: ubuntu-latest
@@ -12,7 +16,6 @@ jobs:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
- run: npm install
- name: Run Tests
timeout-minutes: 5
run: npm run lint

View File

@@ -1,12 +1,17 @@
name: create-sqlite-base
on:
push:
branches:
- master
paths:
- databases/**
jobs:
make-base-db:
name: Generate SQLite base .db
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2

View File

@@ -1,9 +1,13 @@
name: PostgreSQL + Redis CI
on: [push, pull_request]
on:
push:
branches:
- master
pull_request:
jobs:
build:
test:
name: Run Tests with PostgreSQL and Redis
runs-on: ubuntu-latest

View File

@@ -1,7 +1,5 @@
# .github/workflows/take.yml
name: Assign issue to contributor
on:
issue_comment:
on: [issue_comment]
jobs:
assign:

View File

@@ -46,7 +46,6 @@ import { getChapterNames } from "./routes/getChapterNames";
import { postRating } from "./routes/ratings/postRating";
import { getRating } from "./routes/ratings/getRating";
import { postClearCache as ratingPostClearCache } from "./routes/ratings/postClearCache";
import path from "path";
export function createServer(callback: () => void): Server {
// Create a service (the app object is just a callback).

View File

@@ -25,8 +25,8 @@ describe("redis test", function() {
it("Should not be able to get not stored value", (done) => {
redis.getAsync(randKey2)
.then(res => {
if (res.reply || res.err ) assert.fail("Value should not be found")
if (res.reply || res.err ) assert.fail("Value should not be found");
done();
});
})
});
});