ci: adds linting/build workflow to commits

pull/10/head
sct 4 years ago
parent 1647f8c049
commit 28854190a0

@ -0,0 +1,25 @@
name: Overseerr CI
on:
pull_request:
branches:
- "*"
push:
branches:
- develop
jobs:
test:
runs-on: ubuntu-18.04
container: node:12.18-alpine
steps:
- name: checkout
uses: actions/checkout@v2
- name: install dependencies
env:
HUSKY_SKIP_INSTALL: 1
run: yarn
- name: lint
run: npm run lint
- name: build
run: yarn build

@ -7,6 +7,7 @@
"build:server": "tsc --project server/tsconfig.json",
"build:next": "next build",
"build": "yarn build:next && yarn build:server",
"lint": "eslint \"./server/**/*.{ts,tsx}\" \"./src/**/*.{ts,tsx}\"",
"start": "NODE_ENV=production node dist/server/index.js"
},
"dependencies": {

Loading…
Cancel
Save