From c5f8512f99a7954fcbcd6e74fe6443a1e578bdad Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ma=C3=ABl=20Nison?= Date: Fri, 23 Aug 2019 14:58:42 +0200 Subject: [PATCH 1/2] Adds an E2E test for ESLint --- .github/workflows/e2e-eslint-workflow.yml | 35 +++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 .github/workflows/e2e-eslint-workflow.yml diff --git a/.github/workflows/e2e-eslint-workflow.yml b/.github/workflows/e2e-eslint-workflow.yml new file mode 100644 index 000000000000..b9abcbb4b7fc --- /dev/null +++ b/.github/workflows/e2e-eslint-workflow.yml @@ -0,0 +1,35 @@ +on: +- push + +name: 'E2E ESLint' +jobs: + chore: + name: 'Validating ESLint' + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@master + + - name: 'Use Node.js 10.x' + uses: actions/setup-node@master + with: + version: 10.x + + - name: 'Build the standard bundle' + run: | + node ./scripts/run-yarn.js build:cli + + - name: 'Running the integration test' + run: | + source scripts/e2e-setup-ci.sh + + yarn init -y + yarn add eslint + + echo '{"rules": {"semi": ["error", "always"]}}' > .eslintrc + + echo '42;' > ok.js + yarn eslint ok.js + + echo '42' > ko.js + ! yarn eslint ko.js From 02cbb181e47cbc973f3610a52a7c966b57b2e872 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ma=C3=ABl=20Nison?= Date: Fri, 23 Aug 2019 15:01:23 +0200 Subject: [PATCH 2/2] Fixes syntax --- .github/workflows/e2e-eslint-workflow.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/e2e-eslint-workflow.yml b/.github/workflows/e2e-eslint-workflow.yml index b9abcbb4b7fc..5304c3fcad4a 100644 --- a/.github/workflows/e2e-eslint-workflow.yml +++ b/.github/workflows/e2e-eslint-workflow.yml @@ -23,7 +23,7 @@ jobs: run: | source scripts/e2e-setup-ci.sh - yarn init -y + yarn init -p yarn add eslint echo '{"rules": {"semi": ["error", "always"]}}' > .eslintrc