33 lines
779 B
YAML
33 lines
779 B
YAML
name: Build
|
|
run-name: Build
|
|
|
|
on:
|
|
- push
|
|
- pull_request
|
|
|
|
jobs:
|
|
build:
|
|
name: Build NPM Project
|
|
runs-on: ubuntu-latest
|
|
container: node
|
|
steps:
|
|
- name: Clone Repository
|
|
uses: ztimson/actions/clone@develop
|
|
|
|
- name: Install Dependencies
|
|
run: npm i
|
|
|
|
- name: Build Project
|
|
run: npm run build
|
|
|
|
- name: Test
|
|
run: npm run test:coverage
|
|
|
|
- name: Upload Docs
|
|
if: ${{inputs.artifacts}} != "false"
|
|
uses: actions/upload-artifact@v3
|
|
with:
|
|
name: docs
|
|
path: docs
|
|
retention-days: 7
|