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

Add GitHub Action #1

Open
wants to merge 7 commits into
base: master
Choose a base branch
from
Open
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
26 changes: 26 additions & 0 deletions .github/workflows/unittests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: Unit tests
on:
push:
branches:
- master
pull_request:
branches:
- master
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [18.x, 20.x, 22.x]
env:
DEBUG_HIDE_DATE: true
steps:
- uses: actions/checkout@v4
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
- name: Install dependencies
run: npm install
- name: Run unit tests
run: npm test
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "intel",
"name": "@sitespeed.io/intel",
"version": "1.2.0",
"license": "MPL-2.0",
"dependencies": {
Expand All @@ -12,7 +12,7 @@
},
"devDependencies": {
"bluebird": "^3.5",
"debug": "~2.2.0",
"debug": "2.2.0",
"insist": "^1.0",
"jshint": "2.x",
"matcha": "0.x",
Expand Down
2 changes: 1 addition & 1 deletion test/config.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ const intel = require('../');
const NOW = Date.now();
var counter = 1;
function tmp() {
return path.join(os.tmpDir(),
return path.join(os.tmpdir(),
'intel-' + NOW + '-' + process.pid + '-' + (counter++));
}

Expand Down
Loading