Skip to content

Commit

Permalink
Merge pull request #15 from mrloop/use-github-action
Browse files Browse the repository at this point in the history
Use GitHub actions
  • Loading branch information
mrloop authored Nov 2, 2024
2 parents 253978f + f723f04 commit 54360e4
Show file tree
Hide file tree
Showing 6 changed files with 5,836 additions and 15,313 deletions.
43 changes: 43 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
name: CI

on:
pull_request:
push:
# filtering branches here prevents duplicate builds from pull_request and push
branches:
- main
- "v*"
# always run CI for tags
tags:
- "*"

# early issue detection: run CI weekly on Sundays
schedule:
- cron: "0 6 * * 0"

env:
CI: true
PNPM_VERSION: 9.12.2

jobs:
test:
name: Test
runs-on: ubuntu-24.04
steps:
- name: Checkout Code
uses: actions/checkout@v4
- uses: pnpm/action-setup@v4
with:
version: ${{ env.PNPM_VERSION }}
- name: Install Node
uses: actions/setup-node@v4
with:
node-version: 20.17.0
cache: pnpm
- name: Install Dependencies
run: pnpm install --frozen-lockfile
- name: Lint
run: pnpm lint
- name: Test
run: pnpm test

13 changes: 0 additions & 13 deletions .travis.yml

This file was deleted.

15 changes: 10 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,13 +1,11 @@
qunit-retry
==============================================================================

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

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

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

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

or using [`pnpm`](https://pnpm.js.org/):

```bash
pnpm add --save-dev qunit-retry
```


### Node

```js
Expand Down Expand Up @@ -88,13 +93,13 @@ Contributing
### How to Run Tests

```bash
npm test
pnpm test
```

### How to Run Linting

```bash
npm run lint
pnpm lint
```

License
Expand Down
Loading

0 comments on commit 54360e4

Please sign in to comment.