From 28854190a051b4c969f8521dcdef57f5fa5c5fd0 Mon Sep 17 00:00:00 2001 From: sct Date: Sun, 23 Aug 2020 06:23:19 +0000 Subject: [PATCH] ci: adds linting/build workflow to commits --- .github/workflows/ci.yml | 25 +++++++++++++++++++++++++ package.json | 1 + 2 files changed, 26 insertions(+) create mode 100644 .github/workflows/ci.yml diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 000000000..27f1bea53 --- /dev/null +++ b/.github/workflows/ci.yml @@ -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 diff --git a/package.json b/package.json index a72fb95a3..b63e8f12d 100644 --- a/package.json +++ b/package.json @@ -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": {