Skip to content

Commit

Permalink
Merge pull request #16 from buzcarter/feature/UGS2-11__updated_workflow
Browse files Browse the repository at this point in the history
UGS2-11: only on merge, only on open PR
  • Loading branch information
buzcarter authored Sep 9, 2023
2 parents 09b0b18 + dbd2672 commit 3756739
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 21 deletions.
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 🧪

0 comments on commit 3756739

Please sign in to comment.