Merge pull request #10 from sct/feature/ch72

Github workflow for testing PRs
This commit is contained in:
sct
2020-08-23 15:38:28 +09:00
committed by GitHub
5 changed files with 31 additions and 4 deletions

25
.github/workflows/ci.yml vendored Normal file
View File

@@ -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: yarn lint
- name: build
run: yarn build

View File

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

View File

@@ -7,5 +7,6 @@
"strictPropertyInitialization": false, "strictPropertyInitialization": false,
"experimentalDecorators": true, "experimentalDecorators": true,
"emitDecoratorMetadata": true "emitDecoratorMetadata": true
} },
"include": ["**/*.ts", "**/*.tsx"]
} }

View File

@@ -2,7 +2,7 @@
const defaultTheme = require('tailwindcss/defaultTheme'); const defaultTheme = require('tailwindcss/defaultTheme');
module.exports = { module.exports = {
purge: ['./pages/**/*.{ts,tsx}', './components/**/*.{ts,tsx}'], purge: ['./src/pages/**/*.{ts,tsx}', './src/components/**/*.{ts,tsx}'],
theme: { theme: {
extend: { extend: {
fontFamily: { fontFamily: {

View File

@@ -14,6 +14,6 @@
"isolatedModules": true, "isolatedModules": true,
"jsx": "preserve" "jsx": "preserve"
}, },
"include": ["next-env.d.ts", "**/*.ts", "**/*.tsx"], "include": ["next-env.d.ts", "src/**/*.ts", "src/**/*.tsx"],
"exclude": ["node_modules"] "exclude": ["node_modules"]
} }