From 7ec7f72a74431c4fc16e7ee6b586a5f297014faf Mon Sep 17 00:00:00 2001 From: Andrey Lushnikov Date: Wed, 12 Feb 2020 11:44:05 -0800 Subject: [PATCH] devops: add docs & lint github workflow --- .github/workflows/chromium-linux.yml | 3 +-- .github/workflows/chromium-windows.yml | 2 +- .github/workflows/docs-and-lint.yml | 37 ++++++++++++++++++++++++++ .github/workflows/firefox-linux.yml | 2 +- .github/workflows/firefox-windows.yml | 2 +- .github/workflows/webkit-linux.yml | 2 +- .github/workflows/webkit-windows.yml | 2 +- 7 files changed, 43 insertions(+), 7 deletions(-) create mode 100644 .github/workflows/docs-and-lint.yml diff --git a/.github/workflows/chromium-linux.yml b/.github/workflows/chromium-linux.yml index 697dd5e9c2..ac8d6b6447 100644 --- a/.github/workflows/chromium-linux.yml +++ b/.github/workflows/chromium-linux.yml @@ -1,4 +1,4 @@ -name: Chromium Linux Tests +name: tests: Linux + CR on: push: @@ -32,7 +32,6 @@ jobs: - name: npm install, build, and test run: | npm install - npm run build xvfb-run --auto-servernum npm run ctest env: CI: true diff --git a/.github/workflows/chromium-windows.yml b/.github/workflows/chromium-windows.yml index bfc8f08a5f..fac1df4f4f 100644 --- a/.github/workflows/chromium-windows.yml +++ b/.github/workflows/chromium-windows.yml @@ -1,4 +1,4 @@ -name: Chromium Windows Tests +name: tests: Win + CR on: push: diff --git a/.github/workflows/docs-and-lint.yml b/.github/workflows/docs-and-lint.yml new file mode 100644 index 0000000000..d613dfee84 --- /dev/null +++ b/.github/workflows/docs-and-lint.yml @@ -0,0 +1,37 @@ +name: docs & lint + +on: + push: + branches: + - master + pull_request: + branches: + - master + +jobs: + build: + + runs-on: ubuntu-18.04 + + strategy: + matrix: + node-version: [12.x] + + steps: + - uses: actions/checkout@v1 + - name: Use Node.js ${{ matrix.node-version }} + uses: actions/setup-node@v1 + with: + node-version: ${{ matrix.node-version }} + - name: install required packages + run: | + sudo apt-get update + sudo apt-get install libgbm-dev + sudo apt-get install xvfb + + - name: npm install, build, and test + run: | + npm install + npm run lint + env: + CI: true diff --git a/.github/workflows/firefox-linux.yml b/.github/workflows/firefox-linux.yml index bf6a1548b2..970641327d 100644 --- a/.github/workflows/firefox-linux.yml +++ b/.github/workflows/firefox-linux.yml @@ -1,4 +1,4 @@ -name: Firefox Linux Tests +name: tests: Linux + FF on: push: diff --git a/.github/workflows/firefox-windows.yml b/.github/workflows/firefox-windows.yml index 0fc413be63..326854cc83 100644 --- a/.github/workflows/firefox-windows.yml +++ b/.github/workflows/firefox-windows.yml @@ -1,4 +1,4 @@ -name: Firefox Windows Tests +name: tests: Win + FF on: push: diff --git a/.github/workflows/webkit-linux.yml b/.github/workflows/webkit-linux.yml index c7ec50b0f3..3829532010 100644 --- a/.github/workflows/webkit-linux.yml +++ b/.github/workflows/webkit-linux.yml @@ -1,4 +1,4 @@ -name: WebKit Linux Tests +name: tests: Linux + WK on: push: diff --git a/.github/workflows/webkit-windows.yml b/.github/workflows/webkit-windows.yml index 93523b0eff..7fc665d78e 100644 --- a/.github/workflows/webkit-windows.yml +++ b/.github/workflows/webkit-windows.yml @@ -1,4 +1,4 @@ -name: WebKit Windows Tests +name: tests: Win + WK on: push: