diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 0cc7c4add9..79c73ab416 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -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 diff --git a/.github/workflows/examples-ci.yml b/.github/workflows/examples-ci.yml index 5ff6f8719c..92ab7df7cb 100644 --- a/.github/workflows/examples-ci.yml +++ b/.github/workflows/examples-ci.yml @@ -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 diff --git a/package.json b/package.json index 54f56648e1..acf58eeb2b 100644 --- a/package.json +++ b/package.json @@ -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",