mirror of
https://github.com/gosticks/octoprint-open-api.git
synced 2025-10-16 11:45:38 +00:00
add test action
This commit is contained in:
parent
7431485e10
commit
551d4b4f2d
31
.github/workflows/build-docs.yaml
vendored
Normal file
31
.github/workflows/build-docs.yaml
vendored
Normal 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
|
||||
Loading…
Reference in New Issue
Block a user