Skip to content

Commit 0e56e25

Browse files
🤖 config(github): Configure workflow to automate tests of changes.
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.
1 parent 20e08e7 commit 0e56e25

File tree

4 files changed

+28
-25
lines changed

4 files changed

+28
-25
lines changed

.github/workflows/ci:test.yml

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
name: ci:test
2+
on:
3+
- push
4+
- pull_request
5+
jobs:
6+
test:
7+
name: Continuous integration (tests)
8+
runs-on: ubuntu-latest
9+
steps:
10+
- name: Checkout 🛎️
11+
uses: actions/checkout@v2
12+
13+
- name: Install 🔧
14+
uses: bahmutov/npm-install@v1
15+
with:
16+
install-command: yarn --frozen-lockfile --ignore-scripts
17+
useRollingCache: true
18+
19+
- name: Test 🔬
20+
run: yarn ci:test
21+
22+
- name: Publish coverage report 📃
23+
uses: codecov/codecov-action@v1
24+
with:
25+
fail_ci_if_error: true

.travis.yml

Lines changed: 0 additions & 22 deletions
This file was deleted.

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ isPartition(range(5), [[5], [0], [1], [2], [3], [4]]); // false
6767

6868
[![License](https://img.shields.io/github/license/computational-combinatorics/set-partition.svg)](https://raw.githubusercontent.com/computational-combinatorics/set-partition/main/LICENSE)
6969
[![Version](https://img.shields.io/npm/v/@combinatorics/set-partition.svg)](https://www.npmjs.org/package/@combinatorics/set-partition)
70-
[![Build](https://img.shields.io/travis/computational-combinatorics/set-partition/main.svg)](https://travis-ci.com/computational-combinatorics/set-partition/branches)
70+
[![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)
7171
[![Dependencies](https://img.shields.io/david/computational-combinatorics/set-partition.svg)](https://david-dm.org/computational-combinatorics/set-partition)
7272
[![Dev dependencies](https://img.shields.io/david/dev/computational-combinatorics/set-partition.svg)](https://david-dm.org/computational-combinatorics/set-partition?type=dev)
7373
[![GitHub issues](https://img.shields.io/github/issues/computational-combinatorics/set-partition.svg)](https://github.com/computational-combinatorics/set-partition/issues)

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@
3939
"build": "NODE_ENV=production microbundle",
4040
"build-docs": "esdoc",
4141
"build-gh-pages": "npm run build-docs",
42+
"ci:test": "npm run lint-config && npm run lint && npm run cover",
4243
"commit-msg": "commitlint --edit",
4344
"cover": "NODE_ENV=cover c8 --all --src src --reporter lcov --reporter text-summary --reporter text npm test",
4445
"debug": "NODE_ENV=debug npm run test -- -st --fail-fast",
@@ -54,8 +55,7 @@
5455
"prepare": "npm run build",
5556
"prepublishOnly": "pinst --disable",
5657
"release": "np --message ':hatching_chick: release: Bumping to v%s.'",
57-
"test": "ava",
58-
"travis": "npm run lint-config && npm run lint && npm run cover"
58+
"test": "ava"
5959
},
6060
"dependencies": {
6161
"@iterable-iterator/list": "^0.0.2",

0 commit comments

Comments
 (0)