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

Run tests on a variety of platforms and Node versions #180

Merged
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
33 changes: 24 additions & 9 deletions .github/workflows/validate.yml
Original file line number Diff line number Diff line change
@@ -1,17 +1,32 @@
name: Validate schema

on: [push, pull_request]

name: Validate
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
build:
test:
uses: nasa-gcn/.github/.github/workflows/node.yml@main
with:
test-options:
bump:
name: dry run of version bump
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Install Node.js
uses: actions/setup-node@v4
with:
node-version: '18'
- name: NPM Install
node-version: '20.x'
- name: Configure git identity
run: |
git config --global user.email "you@example.com"
git config --global user.name "Your Name"
- name: Install package
run: npm ci
- name: Validate
run: npm run validate
- name: Bump version
run: npm version patch
- name: Run validation
run: npm test
2 changes: 2 additions & 0 deletions .npmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# Don't run commit hooks when user runs `npm version`
commit-hooks = false
Loading
Loading