Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

UGS2-11: only on merge, only on open PR #16

Merged
merged 1 commit into from
Sep 9, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 0 additions & 4 deletions .github/workflows/publishDemo.yml
Original file line number Diff line number Diff line change
@@ -1,12 +1,8 @@
name: Publish Demo Site
# description: Build and deploy demo to GitHub pages
# author: "Buz Carter"

on:
push:
branches: [ "master" ]
pull_request:
branches: [ "master" ]

jobs:
build-node:
Expand Down
23 changes: 6 additions & 17 deletions .github/workflows/runTests.yml
Original file line number Diff line number Diff line change
@@ -1,33 +1,22 @@
name: Run Unit Tests
description: Build and run all unit tests
author: "Buz Carter"

on:
push:
branches: [ "master" ]
pull_request:
branches: [ "master" ]

# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:

jobs:
build-node:
name: Build with Node
name: Install, Build, Test, & Deploy
runs-on: ubuntu-latest
container: node:18

steps:
- name: Install Node
- run: node --version
name: Check Node Version 🔦
- run: npm --version

- name: Checkout Master
name: Check NPM Version 🩺
- uses: actions/checkout@v3
name: Checkout Main branch 🧺
- run: npm install

- name: Run Build
- run: npm run build

- name: Run Tests
name: Install NPM Packages 🔧
- run: npm run test
name: Run unit tests 🧪