mirror of https://github.com/waku-org/js-waku.git
Run prettier on GitHub workflows
This commit is contained in:
parent
5377bd6371
commit
882ddac94e
|
@ -3,16 +3,16 @@ name: CI
|
|||
on:
|
||||
push:
|
||||
branches:
|
||||
- 'master'
|
||||
- 'staging'
|
||||
- 'trying'
|
||||
- "master"
|
||||
- "staging"
|
||||
- "trying"
|
||||
pull_request:
|
||||
|
||||
jobs:
|
||||
build_and_test:
|
||||
env:
|
||||
BUF_VERSION: '0.56.0'
|
||||
NIM_WAKU_VERSION: 'v0.9'
|
||||
BUF_VERSION: "0.56.0"
|
||||
NIM_WAKU_VERSION: "v0.9"
|
||||
strategy:
|
||||
matrix:
|
||||
node: [16]
|
||||
|
@ -51,7 +51,7 @@ jobs:
|
|||
- name: Install Protoc
|
||||
uses: arduino/setup-protoc@v1
|
||||
with:
|
||||
version: '3.x'
|
||||
version: "3.x"
|
||||
repo-token: ${{ secrets.GITHUB_TOKEN }}
|
||||
|
||||
- name: Cache npm cache
|
||||
|
|
|
@ -3,26 +3,33 @@ name: Examples CI
|
|||
on:
|
||||
push:
|
||||
branches:
|
||||
- 'master'
|
||||
- 'staging'
|
||||
- 'trying'
|
||||
- "master"
|
||||
- "staging"
|
||||
- "trying"
|
||||
pull_request:
|
||||
|
||||
jobs:
|
||||
examples_build_and_test:
|
||||
strategy:
|
||||
matrix:
|
||||
example: [ web-chat, eth-pm, eth-pm-wallet-encryption, relay-reactjs-chat, store-reactjs-chat, relay-angular-chat ]
|
||||
example:
|
||||
[
|
||||
web-chat,
|
||||
eth-pm,
|
||||
eth-pm-wallet-encryption,
|
||||
relay-reactjs-chat,
|
||||
store-reactjs-chat,
|
||||
relay-angular-chat,
|
||||
]
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
|
||||
- name: Checkout code
|
||||
uses: actions/checkout@v2
|
||||
|
||||
- name: Install NodeJS
|
||||
uses: actions/setup-node@v2
|
||||
with:
|
||||
node-version: '16'
|
||||
node-version: "16"
|
||||
|
||||
- name: Check if `yarn` or `npm` is used.
|
||||
id: use-yarn
|
||||
|
|
|
@ -34,7 +34,7 @@
|
|||
"build:umd:min:bundle": "webpack --config webpack.config.min.bundle.js",
|
||||
"size": "npm run build:esm && size-limit",
|
||||
"fix": "run-s fix:*",
|
||||
"fix:prettier": "prettier \"src/**/*.ts\" \"./*.json\" \"*.conf.js\" --write",
|
||||
"fix:prettier": "prettier \"src/**/*.ts\" \"./*.json\" \"*.conf.js\" \".github/**/*.yml\" --write",
|
||||
"fix:lint": "eslint src --ext .ts --fix",
|
||||
"pretest": "run-s pretest:*",
|
||||
"pretest:1-init-git-submodules": "[ -f './nim-waku/build/wakunode2' ] || git submodule update --init --recursive",
|
||||
|
@ -44,7 +44,7 @@
|
|||
"nim-waku:force-build": "(cd nim-waku && rm -rf ./build/ ./vendor && make -j$(nproc --all 2>/dev/null || echo 2) update) && run-s nim-waku:build",
|
||||
"test": "run-s build test:*",
|
||||
"test:lint": "eslint src --ext .ts",
|
||||
"test:prettier": "prettier \"src/**/*.ts\" \"./*.json\" \"*.conf.js\" --list-different",
|
||||
"test:prettier": "prettier \"src/**/*.ts\" \"./*.json\" \"*.conf.js\" \".github/**/*.yml\" --list-different",
|
||||
"test:spelling": "cspell \"{README.md,.github/*.md,guides/*.md,src/**/*.ts}\"",
|
||||
"test:unit": "nyc --silent mocha",
|
||||
"test:karma": "karma start",
|
||||
|
|
Loading…
Reference in New Issue