Skip to content

Commit 54360e4

Browse files
authored
Merge pull request #15 from mrloop/use-github-action
Use GitHub actions
2 parents 253978f + f723f04 commit 54360e4

File tree

6 files changed

+5836
-15313
lines changed

6 files changed

+5836
-15313
lines changed

.github/workflows/ci.yml

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
name: CI
2+
3+
on:
4+
pull_request:
5+
push:
6+
# filtering branches here prevents duplicate builds from pull_request and push
7+
branches:
8+
- main
9+
- "v*"
10+
# always run CI for tags
11+
tags:
12+
- "*"
13+
14+
# early issue detection: run CI weekly on Sundays
15+
schedule:
16+
- cron: "0 6 * * 0"
17+
18+
env:
19+
CI: true
20+
PNPM_VERSION: 9.12.2
21+
22+
jobs:
23+
test:
24+
name: Test
25+
runs-on: ubuntu-24.04
26+
steps:
27+
- name: Checkout Code
28+
uses: actions/checkout@v4
29+
- uses: pnpm/action-setup@v4
30+
with:
31+
version: ${{ env.PNPM_VERSION }}
32+
- name: Install Node
33+
uses: actions/setup-node@v4
34+
with:
35+
node-version: 20.17.0
36+
cache: pnpm
37+
- name: Install Dependencies
38+
run: pnpm install --frozen-lockfile
39+
- name: Lint
40+
run: pnpm lint
41+
- name: Test
42+
run: pnpm test
43+

.travis.yml

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

README.md

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,11 @@
11
qunit-retry
22
==============================================================================
33

4-
[![TravisCI Build Status][travis-badge]][travis-badge-url]
54
[![Latest NPM release][npm-badge]][npm-badge-url]
5+
[![CI](https://github.com/mrloop//qunit-retry/workflows/CI/badge.svg)](https://github.com/mrloop/qunit-retry/actions)
66

77
[npm-badge]: https://img.shields.io/npm/v/qunit-retry.svg
88
[npm-badge-url]: https://www.npmjs.com/package/qunit-retry
9-
[travis-badge]: https://img.shields.io/travis/com/mrloop/qunit-retry/master.svg
10-
[travis-badge-url]: https://travis-ci.com/mrloop/qunit-retry
119

1210
Drop in replacement for [QUnit](https://qunitjs.com/) [test](https://api.qunitjs.com/QUnit/test) to `retry` test upon failure.
1311

@@ -57,6 +55,13 @@ or using [`yarn`](https://yarnpkg.com/):
5755
yarn add --dev qunit-retry
5856
```
5957

58+
or using [`pnpm`](https://pnpm.js.org/):
59+
60+
```bash
61+
pnpm add --save-dev qunit-retry
62+
```
63+
64+
6065
### Node
6166

6267
```js
@@ -88,13 +93,13 @@ Contributing
8893
### How to Run Tests
8994

9095
```bash
91-
npm test
96+
pnpm test
9297
```
9398

9499
### How to Run Linting
95100

96101
```bash
97-
npm run lint
102+
pnpm lint
98103
```
99104

100105
License

0 commit comments

Comments
 (0)