add test action

This commit is contained in:
Wlad 2020-11-13 22:57:23 +01:00
parent 7431485e10
commit 551d4b4f2d

31
.github/workflows/build-docs.yaml vendored Normal file
View File

@ -0,0 +1,31 @@
name: Build Docs
on:
# For this workflow, we're using the workflow_dispatch event which is triggered when the user clicks Run workflow in the GitHub Actions UI
workflow_dispatch:
jobs:
test_job:
runs-on: ubuntu-latest
name: Testing private usage
steps:
# To use this repository's private action, you must check out the repository
- name: Checkout
uses: actions/checkout@v2
with:
persist-credentials: false
- name: Use Node.js
uses: actions/setup-node@v1
with:
node-version: "12.x"
- name: Install dependencies
run: npm ci
- run: npm test
- run: npm build
- name: Deploy Docs 🚀
uses: JamesIves/github-pages-deploy-action@3.7.1
with:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
BRANCH: gh-pages # The branch the action should deploy to.
FOLDER: dist # The folder the action should deploy.
CLEAN: true # Automatically remove deleted files from the deploy branch