1
mirror of https://github.com/pure-css/pure synced 2024-11-18 02:36:30 +01:00

ci: add test workflow (#859)

This commit is contained in:
Seth Bertalotto 2021-07-04 09:45:41 -07:00 committed by GitHub
parent 2ca8d9b778
commit 64f2f30121
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 15610 additions and 4 deletions

21
.github/workflows/test.yml vendored Normal file
View File

@ -0,0 +1,21 @@
name: Testing
on:
push:
branches: [master]
pull_request:
branches: [master]
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Use Node.js
uses: actions/setup-node@v2
with:
node-version: 14.x
- run: npm ci
- run: npm run lint
- run: npm test

1
.npmrc
View File

@ -1 +0,0 @@
package-lock = false

View File

@ -6,7 +6,7 @@ Pure
A set of small, responsive CSS modules that you can use in every web project.
[http://purecss.io/][Pure]
[![Build Status](http://img.shields.io/travis/pure-css/pure.svg?style=flat)][Build Status]
![Build Status](https://github.com/pure-css/pure/actions/workflows/test.yml/badge.svg)
[![Gitter](https://badges.gitter.im/Join%20Chat.svg)](https://gitter.im/pure-css/pure?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)
**This project is looking for maintainers to support and enhance Pure.css. If you are interested please [leave a comment](https://github.com/pure-css/pure/issues/692) in the Github issue.**

15587
package-lock.json generated Normal file

File diff suppressed because it is too large Load Diff

View File

@ -8,10 +8,9 @@
"scripts": {
"lint": "eslint . --ext .js",
"prepare": "grunt release",
"pretest": "npm run lint",
"site:build": "npm run pretest && cd site && npm install && npm run build",
"site:start": "cd site && npm run start",
"test": "grunt test && tap test/*.js"
"test": "grunt test && tap test/*.js --no-coverage"
},
"files": [
"build/"