Skip to content

Commit

Permalink
Merge pull request #5 from swisnl/feature/update-tests
Browse files Browse the repository at this point in the history
Migrate tests to GitHub Actions
  • Loading branch information
JaZo committed Oct 9, 2023
2 parents 8b7c4eb + 6ff5f83 commit 8317d01
Show file tree
Hide file tree
Showing 5 changed files with 22 additions and 13 deletions.
17 changes: 17 additions & 0 deletions .github/workflows/tests.yml
@@ -0,0 +1,17 @@
name: 'Test'

on:
push:
branches: [ "master" ]
pull_request: {}

jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 20
- run: npm i
- run: npm test
5 changes: 0 additions & 5 deletions .travis.yml

This file was deleted.

2 changes: 1 addition & 1 deletion README.md
@@ -1,5 +1,5 @@
# sass-rhythm
[![Build Status](https://travis-ci.org/swisnl/sass-rhythm.svg?branch=master)](https://travis-ci.org/swisnl/sass-rhythm)
[![Build Status](https://img.shields.io/github/checks-status/swisnl/sass-rhythm/master?label=tests)](https://github.com/swisnl/sass-rhythm/actions/workflows/tests.yml)
[![Latest Version on NPM](https://img.shields.io/npm/v/sass-rhythm.svg)](https://www.npmjs.com/package/sass-rhythm)
[![Total Downloads](https://img.shields.io/npm/dw/sass-rhythm.svg)](https://www.npmjs.com/package/sass-rhythm)
[![Software License](https://img.shields.io/npm/l/sass-rhythm.svg)](https://www.npmjs.com/package/sass-rhythm)
Expand Down
7 changes: 3 additions & 4 deletions package.json
Expand Up @@ -29,8 +29,7 @@
"homepage": "https://github.com/swisnl/sass-rhythm#readme",
"devDependencies": {
"mocha": "^7.1.2",
"node-sass": "^4.14.1",
"sass-true": "^5.0.0"
},
"dependencies": {}
"sass": "^1.69.0",
"sass-true": "^7.0.0"
}
}
4 changes: 1 addition & 3 deletions test/test.js
@@ -1,7 +1,5 @@
const path = require('path');
const assert = require('assert');
const sassTrue = require('sass-true');
const describe = require("mocha");

const sassFile = path.join(__dirname, 'test.scss');
sassTrue.runSass({file: sassFile}, describe, it);
sassTrue.runSass({ describe, it }, sassFile);

0 comments on commit 8317d01

Please sign in to comment.