Skip to content

Commit

Permalink
Merge pull request #1 from open-rpc/BelfordZ/setup-turborepo
Browse files Browse the repository at this point in the history
Set up Turborepo and GitHub Actions
  • Loading branch information
BelfordZ authored Nov 28, 2024
2 parents 670c87f + 727ecfc commit 6869ccf
Show file tree
Hide file tree
Showing 15 changed files with 154 additions and 461 deletions.
89 changes: 0 additions & 89 deletions .circleci/config.yml

This file was deleted.

7 changes: 7 additions & 0 deletions .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"tasks": {
"test": "npm install && npm test",
"build": "npm install && npm run build",
"launch": "npm install && npm run dev"
}
}
58 changes: 58 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
name: CI

on:
push:
branches:
- master
pull_request:
branches:
- '**'

jobs:
test:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Set up Node.js
uses: actions/setup-node@v2
with:
node-version: 10
- name: Install dependencies
run: npm install
- name: Install codecov
run: npm install codecov
- name: Run tests
run: npm test
- name: Upload coverage to Codecov
run: ./node_modules/.bin/codecov

build:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Set up Node.js
uses: actions/setup-node@v2
with:
node-version: 10
- name: Install dependencies
run: npm install
- name: Build project
run: npm run build

release:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Set up Node.js
uses: actions/setup-node@v2
with:
node-version: 10
- name: Install dependencies
run: npm install
- name: Build project
run: npm run build
- name: Run semantic-release
run: npx semantic-release
26 changes: 26 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: Release

on:
push:
branches:
- master

jobs:
release:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Set up Node.js
uses: actions/setup-node@v2
with:
node-version: 10
- name: Install dependencies
run: npm install
- name: Build project
run: npm run build
- name: Run semantic-release
run: npx semantic-release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
1 change: 1 addition & 0 deletions .nodenv
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
14.17.5
18 changes: 16 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,22 @@
"description": "mono repo for open-rpc tooling",
"main": "jest.config.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
"test": "echo \"Error: no test specified\" && exit 1",
"build": "turbo run build",
"test": "turbo run test",
"lint": "turbo run lint",
"watch": "turbo run build test --watch",
"dev": "turbo run build start --watch"
},
"author": "",
"license": "ISC"
"license": "ISC",
"workspaces": [
"packages/*"
],
"devDependencies": {
"turbo": "^1.0.0"
},
"engines": {
"node": ">=14.0.0"
}
}
89 changes: 0 additions & 89 deletions packages/docs-react/.circleci/config.yml

This file was deleted.

8 changes: 6 additions & 2 deletions packages/docs-react/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@
"scripts": {
"lint": "tslint --fix -p .",
"build": "tsc && cp src/ContentDescriptor/ContentDescriptor.css build/ContentDescriptor/",
"test": "npm run lint && jest --coverage"
"test": "npm run lint && jest --coverage",
"start": "react-scripts start"
},
"author": "",
"license": "Apache-2.0",
Expand Down Expand Up @@ -45,5 +46,8 @@
},
"files": [
"build"
]
],
"engines": {
"node": ">=18.20.5"
}
}
Loading

0 comments on commit 6869ccf

Please sign in to comment.