Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,3 +24,7 @@ updates:
commit-message:
prefix: chore(deps)
prefix-development: chore(deps-dev)
ignore:
- dependency-name: husky
versions:
- ">= 5"
25 changes: 13 additions & 12 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,20 +9,21 @@ jobs:

strategy:
matrix:
node-version: [10.x, 12.x, 14.x]
node-version: [12.x, 14.x]

steps:
- uses: actions/checkout@v2.3.4
- uses: actions/checkout@v2.3.4

- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v2.1.5
with:
node-version: ${{ matrix.node-version }}
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v2.1.5
with:
node-version: ${{ matrix.node-version }}

- name: Install dependencies
run: |
npm ci
npm run bootstrap
- name: Install npm@7
run: npm install -g npm@7

- name: Run tests
run: npm test
- name: Install dependencies
run: npm ci

- name: Run tests
run: npm test
35 changes: 10 additions & 25 deletions .github/workflows/codeql-analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,34 +7,19 @@ on:
- cron: '0 12 * * 1'

jobs:
CodeQL-Build:
analyze:

runs-on: ubuntu-latest

steps:
- name: Checkout repository
uses: actions/checkout@v2.3.4
with:
# We must fetch at least the immediate parents so that if this is
# a pull request then we can checkout the head.
fetch-depth: 2
- name: Checkout repository
uses: actions/checkout@v2.3.4

# If this run was triggered by a pull request event, then checkout
# the head of the pull request instead of the merge commit.
- run: git checkout HEAD^2
if: ${{ github.event_name == 'pull_request' }}
- name: Initialize CodeQL
uses: github/codeql-action/init@v1
with:
languages: javascript
config-file: ./.github/codeql/config.yml

# Initializes the CodeQL tools for scanning.
- name: Initialize CodeQL
uses: github/codeql-action/init@v1
with:
languages: javascript
config-file: ./.github/codeql/config.yml

- name: Install Dependencies
run: |
npm ci
npx lerna bootstrap --concurrency 2

- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v1
- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v1
7 changes: 4 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,8 @@
"name": "api-monorepo",
"private": true,
"scripts": {
"bootstrap": "lerna bootstrap --hoist",
"clean": "lerna clean",
"lint": "lerna run lint --stream",
"postinstall": "npm run bootstrap",
"publish": "lerna publish",
"test": "lerna run test --stream",
"version": "conventional-changelog --pkg lerna.json -i CHANGELOG.md -s && git add CHANGELOG.md"
Expand All @@ -15,8 +13,11 @@
"url": "https://github.com/readmeio/api.git"
},
"engines": {
"node": ">=10"
"node": "^12 || ^14"
},
"workspaces": [
"./packages/*"
],
"devDependencies": {
"@commitlint/cli": "^12.0.1",
"@commitlint/config-conventional": "^12.0.1",
Expand Down
Loading