Skip to content

Commit

Permalink
Add dedicated test workflow (#37)
Browse files Browse the repository at this point in the history
  • Loading branch information
MattIPv4 authored Nov 29, 2022
1 parent abe92fa commit 13957b7
Show file tree
Hide file tree
Showing 3 changed files with 33 additions and 4 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/do-spaces-workflow.yml
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
name: Test and Deploy to DigitalOcean Spaces
name: Deploy to DigitalOcean Spaces

on: push

permissions:
contents: write

jobs:
build:
deploy-spaces:
runs-on: ubuntu-latest

steps:
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/gh-pages-workflow.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Test and Deploy to GitHub Pages
name: Deploy to GitHub Pages

on:
push:
Expand All @@ -13,7 +13,7 @@ concurrency:
cancel-in-progress: true

jobs:
build:
deploy-pages:
runs-on: ubuntu-latest

steps:
Expand Down
29 changes: 29 additions & 0 deletions .github/workflows/test-workflow.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: Test and Build

on: pull_request

permissions:
contents: read

jobs:
test-build:
runs-on: ubuntu-latest

steps:
- name: Checkout
uses: actions/checkout@v3

- name: Use Node.js
uses: actions/setup-node@v3
with:
node-version-file: .nvmrc
cache: npm

- name: Install dependencies
run: npm ci

- name: Run tests
run: npm test

- name: Build tool
run: npm run build

1 comment on commit 13957b7

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This commit has been deployed to DigitalOcean Spaces for easy reviewing.

minify-tool (Build Analysis Report)

Please sign in to comment.