Skip to content

Commit ed2d379

Browse files
committed
Use github actions instead of travis
1 parent 12acef3 commit ed2d379

File tree

3 files changed

+44
-15
lines changed

3 files changed

+44
-15
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: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,10 @@ qunit-retry
33

44
[![TravisCI Build Status][travis-badge]][travis-badge-url]
55
[![Latest NPM release][npm-badge]][npm-badge-url]
6+
[![CI](https://github.com/mrloop//qunit-retry/workflows/CI/badge.svg)](https://github.com/mrloop/qunit-retry/actions)
67

78
[npm-badge]: https://img.shields.io/npm/v/qunit-retry.svg
89
[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
1110

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

0 commit comments

Comments
 (0)