-
-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add service and website to repo & new BundleMon version (#32)
## BREAKING CHANGES - GitHub integration: - `github-pr` output name to changed to `github` - `statusCheck` option in `github` output options changed to `commitStatus` - [Install BundleMon GitHub App](https://github.com/apps/bundlemon), `BUNDLEMON_GITHUB_TOKEN` env var is not needed anymore and it wont work. - remove `--local` / `onlyLocalAnalyze` option, will run in local mode if `CI` environment variable doesn't exists ## Features - Add `checkRun` option to `github` output, will create a GitHub check run. default `false`
- Loading branch information
Showing
128 changed files
with
9,929 additions
and
738 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
.git | ||
*Dockerfile* | ||
*docker-compose* | ||
node_modules | ||
*.log | ||
build | ||
*.tsbuildinfo | ||
*.md | ||
.next |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,98 @@ | ||
name: PR checks | ||
|
||
on: | ||
pull_request: | ||
types: [synchronize, opened, reopened] | ||
|
||
jobs: | ||
packages: | ||
runs-on: ubuntu-latest | ||
|
||
strategy: | ||
fail-fast: false | ||
matrix: | ||
node-version: [10.x, 12.x, 14.x] | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Use Node.js ${{ matrix.node-version }} | ||
uses: actions/setup-node@v2-beta | ||
with: | ||
node-version: ${{ matrix.node-version }} | ||
|
||
- name: Install dependencies | ||
run: yarn | ||
|
||
- name: Build | ||
run: yarn build-packages | ||
|
||
- name: Test | ||
run: yarn test | ||
|
||
- uses: codecov/codecov-action@v1 | ||
if: ${{ matrix.node-version == '12.x' }} # run this step only one time | ||
with: | ||
token: ${{ secrets.CODECOV_TOKEN }} | ||
file: ./coverage/coverage-final.json | ||
|
||
- name: Lint | ||
if: ${{ matrix.node-version == '12.x' }} # run this step only one time | ||
run: yarn lint-packages | ||
|
||
- name: Type check | ||
if: ${{ matrix.node-version == '12.x' }} # run this step only one time | ||
run: yarn type-check-packages | ||
|
||
website: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
|
||
- name: Use Node.js 12 | ||
uses: actions/setup-node@v2-beta | ||
with: | ||
node-version: '12' | ||
|
||
- name: Install dependencies | ||
run: yarn | ||
|
||
- name: Build packages | ||
run: yarn build-packages | ||
|
||
- name: type check | ||
working-directory: ./website | ||
run: yarn type-check | ||
|
||
- name: Lint | ||
working-directory: ./website | ||
run: yarn lint | ||
|
||
service: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
|
||
- name: Use Node.js 12 | ||
uses: actions/setup-node@v2-beta | ||
with: | ||
node-version: '12' | ||
|
||
- name: Install dependencies | ||
run: yarn | ||
|
||
- name: Build packages | ||
run: yarn build-packages | ||
|
||
- name: type check | ||
working-directory: ./service | ||
run: yarn type-check | ||
|
||
- name: Lint | ||
working-directory: ./service | ||
run: yarn lint | ||
|
||
- name: Build | ||
working-directory: ./service | ||
run: yarn build |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -105,4 +105,6 @@ dist | |
.vscode | ||
packages/*/lib | ||
examples | ||
.DS_STORE | ||
.DS_STORE | ||
build | ||
.vercel |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
FROM node:14-alpine | ||
|
||
WORKDIR /app | ||
|
||
EXPOSE 3333 | ||
|
||
COPY package.json yarn.lock ./ | ||
COPY service/package.json ./service/ | ||
COPY packages/bundlemon-utils/package.json ./packages/bundlemon-utils/ | ||
|
||
RUN yarn | ||
|
||
COPY tsconfig.json ./ | ||
|
||
WORKDIR /app/packages/bundlemon-utils | ||
|
||
COPY packages/bundlemon-utils/ . | ||
|
||
RUN yarn build | ||
|
||
WORKDIR /app/service | ||
|
||
COPY service/ . | ||
|
||
CMD ["yarn", "start:watch"] | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
version: '3.3' | ||
|
||
services: | ||
mongo: | ||
image: mongo:4 | ||
ports: | ||
- '51651:27017' | ||
volumes: | ||
- /data/db | ||
logging: | ||
driver: "none" | ||
command: --quiet | ||
|
||
bundlemon: | ||
build: . | ||
environment: | ||
- NODE_ENV=development | ||
- MONGO_URL=mongodb://mongo:27017 | ||
- MONGO_DB_NAME=dev | ||
- MONGO_DB_USER=user | ||
- MONGO_DB_PASSWORD=password | ||
env_file: | ||
- ./service/.env | ||
depends_on: | ||
- mongo | ||
ports: | ||
- '3333:3333' | ||
volumes: | ||
- $PWD:/app | ||
- /usr/local/share/.cache/yarn/v6 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.