Skip to content

Commit 371643d

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/make-github-pseudonymous-again/rejuvenate/blob/7a92df9c28303ed9cd6ee1a5e4999acfc8c52497/src/transforms/github:workflow-configure-ci:test.js Please contact the author of the transform if you believe there was an error.
1 parent db33576 commit 371643d

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@v3
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@v3
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
@@ -16,7 +16,7 @@ const {dict, encode, decode} = lz78;
1616

1717
[![License](https://img.shields.io/github/license/compression-algorithm/lempel-ziv.svg)](https://raw.githubusercontent.com/compression-algorithm/lempel-ziv/main/LICENSE)
1818
[![Version](https://img.shields.io/npm/v/@compression-algorithm/lempel-ziv.svg)](https://www.npmjs.org/package/@compression-algorithm/lempel-ziv)
19-
[![Build](https://img.shields.io/travis/compression-algorithm/lempel-ziv/main.svg)](https://travis-ci.com/compression-algorithm/lempel-ziv/branches)
19+
[![Tests](https://img.shields.io/github/workflow/status/compression-algorithm/lempel-ziv/ci:test?event=push&label=tests)](https://github.com/compression-algorithm/lempel-ziv/actions/workflows/ci:test.yml?query=branch:main)
2020
[![Dependencies](https://img.shields.io/librariesio/github/compression-algorithm/lempel-ziv.svg)](https://github.com/compression-algorithm/lempel-ziv/network/dependencies)
2121
[![GitHub issues](https://img.shields.io/github/issues/compression-algorithm/lempel-ziv.svg)](https://github.com/compression-algorithm/lempel-ziv/issues)
2222
[![Downloads](https://img.shields.io/npm/dm/@compression-algorithm/lempel-ziv.svg)](https://www.npmjs.org/package/@compression-algorithm/lempel-ziv)

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@
4545
"build": "NODE_ENV=production microbundle",
4646
"build-docs": "esdoc",
4747
"build-gh-pages": "npm run build-docs",
48+
"ci:test": "npm run lint-config && npm run lint && npm run cover",
4849
"commit-msg": "commitlint --edit",
4950
"cover": "NODE_ENV=cover c8 --all --src src --reporter lcov --reporter text-summary --reporter text npm test",
5051
"debug": "NODE_ENV=debug npm run test -- -st --fail-fast",
@@ -60,8 +61,7 @@
6061
"prepare": "npm run build",
6162
"prepublishOnly": "pinst --disable",
6263
"release": "np --message ':hatching_chick: release: Bumping to v%s.'",
63-
"test": "ava",
64-
"travis": "npm run lint-config && npm run lint && npm run cover"
64+
"test": "ava"
6565
},
6666
"dependencies": {
6767
"@functional-data-structure/persistent-stack": "^1.0.0",

0 commit comments

Comments
 (0)