mirror of
https://github.com/ajayyy/SponsorBlockServer.git
synced 2025-12-06 03:26:59 +03:00
eslint + workflow formatting
- appropriate job names - only trigger on pushes to master branch & PRs - conform to formatting
This commit is contained in:
9
.github/workflows/ci.yml
vendored
9
.github/workflows/ci.yml
vendored
@@ -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
|
||||
|
||||
9
.github/workflows/eslint.yml
vendored
9
.github/workflows/eslint.yml
vendored
@@ -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
|
||||
5
.github/workflows/generate-sqlite-base.yml
vendored
5
.github/workflows/generate-sqlite-base.yml
vendored
@@ -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
|
||||
|
||||
8
.github/workflows/postgres-redis-ci.yml
vendored
8
.github/workflows/postgres-redis-ci.yml
vendored
@@ -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
|
||||
|
||||
|
||||
12
.github/workflows/take-action.yml
vendored
12
.github/workflows/take-action.yml
vendored
@@ -1,14 +1,12 @@
|
||||
# .github/workflows/take.yml
|
||||
name: Assign issue to contributor
|
||||
on:
|
||||
issue_comment:
|
||||
on: [issue_comment]
|
||||
|
||||
jobs:
|
||||
assign:
|
||||
name: Take an issue
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: take the issue
|
||||
uses: bdougie/take-action@main
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ github.token }}
|
||||
- name: take the issue
|
||||
uses: bdougie/take-action@main
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ github.token }}
|
||||
|
||||
Reference in New Issue
Block a user