Fix WebSocket threads CPU usage bug #216
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Pull request checks | |
on: | |
pull_request: | |
workflow_dispatch: | |
jobs: | |
lint: | |
name: Lint | |
runs-on: ubuntu-18.04 | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: actions/setup-java@v1 | |
with: | |
java-version: "11" | |
architecture: x64 | |
- uses: ./.github/actions/lint | |
unit-tests: | |
name: Unit Tests | |
runs-on: ubuntu-18.04 | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: actions/setup-java@v1 | |
with: | |
java-version: "11" | |
architecture: x64 | |
- uses: ./.github/actions/unit-tests | |
documentation-snippets-tests: | |
name: Documentation - Snippets Tests | |
runs-on: ubuntu-18.04 | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Cache node modules | |
uses: actions/cache@v2 | |
env: | |
cache-name: cache-node-modules | |
with: | |
path: ~/.npm | |
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/package-lock.json') }} | |
restore-keys: | | |
${{ runner.os }}-build-${{ env.cache-name }}- | |
${{ runner.os }}-build- | |
${{ runner.os }}- | |
- uses: actions/setup-node@v1.4.4 | |
with: | |
node-version: "12" | |
- uses: ./.github/actions/snippets-tests | |
doc-dead-links: | |
name: Check dead-links | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
with: | |
fetch-depth: 0 | |
- name: Extract references from context | |
shell: bash | |
id: extract-refs | |
run: | | |
echo "::set-output name=version::$(git describe --abbrev=0 --tags | cut -d. -f 1)" | |
echo "::set-output name=repo::$(echo $GITHUB_REPOSITORY | cut -d/ -f 2)" | |
echo "::set-output name=fw-branch::$(if [ $BASE_BRANCH == master ]; then echo master; else echo develop; fi)" | |
- uses: convictional/trigger-workflow-and-wait@v1.3.0 | |
with: | |
owner: kuzzleio | |
repo: documentation | |
github_token: ${{ secrets.ACCESS_TOKEN_CI }} | |
workflow_file_name: dead_links.workflow.yml | |
ref: ${{ steps.extract-refs.outputs.fw-branch }} | |
inputs: '{"repo_name": "${{ steps.extract-refs.outputs.repo }}", "branch": "${{ github.head_ref }}", "version": "${{ steps.extract-refs.outputs.version }}"}' |