benjaminhoffman / gatsby-plugin-segment-js

Gatsby plugin for segment.com's analytic.js snippet
https://www.npmjs.com/package/gatsby-plugin-segment-js
MIT License
40 stars 28 forks source link

Add basic testing infrastructure and basic tests #44

Closed newhouse closed 2 years ago

newhouse commented 2 years ago

Adds some basic tests for this plugin, and triggers them upon:

  1. Merges to master
  2. PRs against master

The test just check for the presence of some expected code strings in the Gatsby build output. It will test across a "matrix" of combinations of:

  1. Gatsby versions 2, 3 and 4.
  2. Running on Node versions 12, 14 and 16.

Note: this will cost Github actions minutes, but Github provides 2,000 free minutes per month, and that should be more than enough for this repo's current activity.

benjaminhoffman commented 2 years ago

wonderful and very much needed. this is a great start. thank you!

newhouse commented 2 years ago

wonderful and very much needed. this is a great start. thank you!

Thanks @benjaminhoffman !

I'll wait for you to give it an approval before merging...can always use another pair of 👀 ...