Skip to content

Commit 39ad92a

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 c545eb6 commit 39ad92a

File tree

4 files changed

+28
-25
lines changed

4 files changed

+28
-25
lines changed

Diff for: .github/workflows/ci:test.yml

+25
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

Diff for: .travis.yml

-22
This file was deleted.

Diff for: README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ next( reversed( identity( 3 ) ) ) ; // [ 0 , 1 , 2 ]
2323

2424
[![License](https://img.shields.io/github/license/computational-combinatorics/permutation.svg)](https://raw.githubusercontent.com/computational-combinatorics/permutation/main/LICENSE)
2525
[![Version](https://img.shields.io/npm/v/@combinatorics/permutation.svg)](https://www.npmjs.org/package/@combinatorics/permutation)
26-
[![Build](https://img.shields.io/travis/computational-combinatorics/permutation/main.svg)](https://travis-ci.com/computational-combinatorics/permutation/branches)
26+
[![Tests](https://img.shields.io/github/workflow/status/computational-combinatorics/permutation/ci:test?event=push&label=tests)](https://github.com/computational-combinatorics/permutation/actions/workflows/ci:test.yml?query=branch:main)
2727
[![Dependencies](https://img.shields.io/david/computational-combinatorics/permutation.svg)](https://david-dm.org/computational-combinatorics/permutation)
2828
[![Dev dependencies](https://img.shields.io/david/dev/computational-combinatorics/permutation.svg)](https://david-dm.org/computational-combinatorics/permutation?type=dev)
2929
[![GitHub issues](https://img.shields.io/github/issues/computational-combinatorics/permutation.svg)](https://github.com/computational-combinatorics/permutation/issues)

Diff for: package.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@
4141
"build": "NODE_ENV=production microbundle",
4242
"build-docs": "esdoc",
4343
"build-gh-pages": "npm run build-docs",
44+
"ci:test": "npm run lint-config && npm run lint && npm run cover",
4445
"commit-msg": "commitlint --edit",
4546
"cover": "NODE_ENV=cover c8 --all --src src --reporter lcov --reporter text-summary --reporter text npm test",
4647
"debug": "NODE_ENV=debug npm run test -- -st --fail-fast",
@@ -56,8 +57,7 @@
5657
"prepare": "npm run build",
5758
"prepublishOnly": "pinst --disable",
5859
"release": "np --message ':hatching_chick: release: Bumping to v%s.'",
59-
"test": "ava",
60-
"travis": "npm run lint-config && npm run lint && npm run cover"
60+
"test": "ava"
6161
},
6262
"dependencies": {},
6363
"devDependencies": {

0 commit comments

Comments
 (0)