Skip to content

Commit e3be9e3

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/2e1ef9518a1421453a09d3cf302915d2a56c8b25/src/transforms/github:workflow-configure-ci:test.js Please contact the author of the transform if you believe there was an error.
1 parent e99fc3f commit e3be9e3

File tree

4 files changed

+28
-16
lines changed

4 files changed

+28
-16
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 & 13 deletions
This file was deleted.

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ Language operator functions for JavaScript.
66

77
[![License](https://img.shields.io/github/license/make-github-pseudonymous-again/js-operator.svg)](https://raw.githubusercontent.com/make-github-pseudonymous-again/js-operator/main/LICENSE)
88
[![Version](https://img.shields.io/npm/v/@aureooms/js-operator.svg)](https://www.npmjs.org/package/@aureooms/js-operator)
9-
[![Build](https://img.shields.io/travis/make-github-pseudonymous-again/js-operator/main.svg)](https://travis-ci.com/make-github-pseudonymous-again/js-operator/branches)
9+
[![Tests](https://img.shields.io/github/workflow/status/make-github-pseudonymous-again/js-operator/ci:test?event=push&label=tests)](https://github.com/make-github-pseudonymous-again/js-operator/actions/workflows/ci:test.yml?query=branch:main)
1010
[![Dependencies](https://img.shields.io/david/make-github-pseudonymous-again/js-operator.svg)](https://david-dm.org/make-github-pseudonymous-again/js-operator)
1111
[![Dev dependencies](https://img.shields.io/david/dev/make-github-pseudonymous-again/js-operator.svg)](https://david-dm.org/make-github-pseudonymous-again/js-operator?type=dev)
1212
[![GitHub issues](https://img.shields.io/github/issues/make-github-pseudonymous-again/js-operator.svg)](https://github.com/make-github-pseudonymous-again/js-operator/issues)

package.json

Lines changed: 2 additions & 2 deletions
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
"dev": "npm run lint-config-and-fix && npm run lint-and-fix && npm run cover -- -- -st --fail-fast",
@@ -55,8 +56,7 @@
5556
"prepare": "npm run build",
5657
"prepublishOnly": "pinst --disable",
5758
"release": "np --message ':hatching_chick: release: Bumping to v%s.'",
58-
"test": "ava",
59-
"travis": "npm run lint-config && npm run lint && npm run cover"
59+
"test": "ava"
6060
},
6161
"dependencies": {},
6262
"devDependencies": {

0 commit comments

Comments
 (0)