Skip to content

Commit

Permalink
🤖 config(github): Configure workflow to automate tests of changes.
Browse files Browse the repository at this point in the history
These changes were automatically generated by a transform whose code can be found at:
  - https://github.com/aureooms/rejuvenate/blob/1fe650dc2407c6c6395828a28777fe8137a3bd2f/src/transforms/github:workflow-configure-ci:test.js
Please contact the author of the transform if you believe there was an error.
  • Loading branch information
a-flying-potato authored and make-github-pseudonymous-again committed May 21, 2021
1 parent 20e08e7 commit 0e56e25
Show file tree
Hide file tree
Showing 4 changed files with 28 additions and 25 deletions.
25 changes: 25 additions & 0 deletions .github/workflows/ci:test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: ci:test
on:
- push
- pull_request
jobs:
test:
name: Continuous integration (tests)
runs-on: ubuntu-latest
steps:
- name: Checkout 🛎️
uses: actions/checkout@v2

- name: Install 🔧
uses: bahmutov/npm-install@v1
with:
install-command: yarn --frozen-lockfile --ignore-scripts
useRollingCache: true

- name: Test 🔬
run: yarn ci:test

- name: Publish coverage report 📃
uses: codecov/codecov-action@v1
with:
fail_ci_if_error: true
22 changes: 0 additions & 22 deletions .travis.yml

This file was deleted.

2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ isPartition(range(5), [[5], [0], [1], [2], [3], [4]]); // false

[![License](https://img.shields.io/github/license/computational-combinatorics/set-partition.svg)](https://raw.githubusercontent.com/computational-combinatorics/set-partition/main/LICENSE)
[![Version](https://img.shields.io/npm/v/@combinatorics/set-partition.svg)](https://www.npmjs.org/package/@combinatorics/set-partition)
[![Build](https://img.shields.io/travis/computational-combinatorics/set-partition/main.svg)](https://travis-ci.com/computational-combinatorics/set-partition/branches)
[![Tests](https://img.shields.io/github/workflow/status/computational-combinatorics/set-partition/ci:test?event=push&label=tests)](https://github.com/computational-combinatorics/set-partition/actions/workflows/ci:test.yml?query=branch:main)
[![Dependencies](https://img.shields.io/david/computational-combinatorics/set-partition.svg)](https://david-dm.org/computational-combinatorics/set-partition)
[![Dev dependencies](https://img.shields.io/david/dev/computational-combinatorics/set-partition.svg)](https://david-dm.org/computational-combinatorics/set-partition?type=dev)
[![GitHub issues](https://img.shields.io/github/issues/computational-combinatorics/set-partition.svg)](https://github.com/computational-combinatorics/set-partition/issues)
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@
"build": "NODE_ENV=production microbundle",
"build-docs": "esdoc",
"build-gh-pages": "npm run build-docs",
"ci:test": "npm run lint-config && npm run lint && npm run cover",
"commit-msg": "commitlint --edit",
"cover": "NODE_ENV=cover c8 --all --src src --reporter lcov --reporter text-summary --reporter text npm test",
"debug": "NODE_ENV=debug npm run test -- -st --fail-fast",
Expand All @@ -54,8 +55,7 @@
"prepare": "npm run build",
"prepublishOnly": "pinst --disable",
"release": "np --message ':hatching_chick: release: Bumping to v%s.'",
"test": "ava",
"travis": "npm run lint-config && npm run lint && npm run cover"
"test": "ava"
},
"dependencies": {
"@iterable-iterator/list": "^0.0.2",
Expand Down

0 comments on commit 0e56e25

Please sign in to comment.