From e0c31ad92d1659a4b5e75f7cdf494e83cf4cccb1 Mon Sep 17 00:00:00 2001 From: Itamar Givon Date: Fri, 21 Aug 2020 17:06:21 +0200 Subject: [PATCH] Adapt workflow Add path limitation for CI runs Add token workflow --- .github/workflows/test-and-demo.yaml | 5 ++++- .github/workflows/test-and-lint.yml | 28 ++++++++++++++++++++++++++++ 2 files changed, 32 insertions(+), 1 deletion(-) create mode 100644 .github/workflows/test-and-lint.yml diff --git a/.github/workflows/test-and-demo.yaml b/.github/workflows/test-and-demo.yaml index c550080ec..16f52216e 100644 --- a/.github/workflows/test-and-demo.yaml +++ b/.github/workflows/test-and-demo.yaml @@ -5,7 +5,10 @@ # # For more information see: https://help.github.com/actions/language-and-framework-guides/using-nodejs-with-github-actions -on: push +on: + push: + paths: + - 'vue-components/**' name: Test and deploy jobs: test-and-demo: diff --git a/.github/workflows/test-and-lint.yml b/.github/workflows/test-and-lint.yml new file mode 100644 index 000000000..551dc6d72 --- /dev/null +++ b/.github/workflows/test-and-lint.yml @@ -0,0 +1,28 @@ +# This workflow will do +# - a clean install of node dependencies +# - run tests +# - build and upload the storybook to a staging area +# +# For more information see: https://help.github.com/actions/language-and-framework-guides/using-nodejs-with-github-actions + +on: + push: + paths: + - 'tokens/**' + - 'docs/**' + +name: Test and lint +jobs: + test-and-lint: + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v2 + - name: Set up node + uses: actions/setup-node@v1 + with: + node-version: '10.x' + - name: Install + run: npm ci + - name: Test + run: npm run test