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