This commit is contained in:
Franck Royer 2021-09-24 10:47:06 +10:00
parent 98bf7f7e3b
commit b1ddcb5c49
No known key found for this signature in database
GPG Key ID: A82ED75A8DFC50A4
3 changed files with 23 additions and 2 deletions

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

@ -0,0 +1,20 @@
name: CI
on:
pull_request:
push:
branches:
- main
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Setup node 14
uses: actions/setup-node@v1
with:
node-version: 14.x
- run: yarn install --frozen-lockfile
- run: yarn build
- run: yarn test

View File

@ -6,6 +6,7 @@
"fix": "run-s 'fix:*'", "fix": "run-s 'fix:*'",
"fix:prettier": "prettier \"./*.json\" --write", "fix:prettier": "prettier \"./*.json\" --write",
"build": "wsrun -e -c -s build", "build": "wsrun -e -c -s build",
"test": "wsrun -e -c -s test",
"sc": "yarn workspace status-communities" "sc": "yarn workspace status-communities"
}, },
"devDependencies": { "devDependencies": {

View File

@ -14,10 +14,10 @@
"fix": "run-s 'fix:*'", "fix": "run-s 'fix:*'",
"fix:prettier": "prettier \"src/**/*.ts\" \"./*.json\" --write", "fix:prettier": "prettier \"src/**/*.ts\" \"./*.json\" --write",
"fix:lint": "eslint src --ext .ts --fix", "fix:lint": "eslint src --ext .ts --fix",
"test": "run-s 'test:*'",
"test:lint": "eslint src --ext .ts", "test:lint": "eslint src --ext .ts",
"test:prettier": "prettier \"src/**/*.ts\" \"./*.json\" --list-different", "test:prettier": "prettier \"src/**/*.ts\" \"./*.json\" --list-different",
"test:spelling": "cspell \"{README.md,.github/*.md,guides/*.md,src/**/*.ts}\"", "test:unit": "mocha",
"test:unit": "nyc --silent mocha",
"proto": "run-s 'proto:*'", "proto": "run-s 'proto:*'",
"proto:lint": "buf lint", "proto:lint": "buf lint",
"proto:build": "buf generate" "proto:build": "buf generate"