Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore(ci): converted travis workflow to github action #208

Merged
merged 3 commits into from
Apr 21, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,7 @@ updates:
interval: monthly
ignore:
- dependency-name: dependency-check
- package-ecosystem: github-actions
directory: /
schedule:
interval: monthly
31 changes: 31 additions & 0 deletions .github/workflows/sauce.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: Sauce Labs
on: push
concurrency: sauce-labs
jobs:
test:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Set up node
uses: actions/setup-node@v1
with:
node-version: 14
- name: Install
run: npm install
env:
# Download Sauce Connect binary now instead of on first run
SAUCE_CONNECT_DOWNLOAD_ON_INSTALL: true
- name: Add host
run: echo "127.0.0.1 airtap.local" | sudo tee -a /etc/hosts
- name: Test
run: npm run test-browsers
env:
SAUCE_USERNAME: ${{ secrets.SAUCE_USERNAME }}
SAUCE_ACCESS_KEY: ${{ secrets.SAUCE_ACCESS_KEY }}
marcuslyons marked this conversation as resolved.
Show resolved Hide resolved
- name: Coverage
run: npm run coverage
- name: Codecov
uses: codecov/codecov-action@v1
with:
file: coverage/lcov.info
26 changes: 26 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: Test
on: [push, pull_request]
jobs:
test:
runs-on: ubuntu-latest
strategy:
matrix:
node: [10, 12, 14]
name: Node ${{ matrix.node }}
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Use node ${{ matrix.node }}
uses: actions/setup-node@v2
with:
node-version: ${{ matrix.node }}
- name: Install
run: npm install
- name: Test
run: npm test
- name: Coverage
run: npm run coverage
- name: Codecov
uses: codecov/codecov-action@v1
with:
file: coverage/lcov.info
25 changes: 0 additions & 25 deletions .travis.yml

This file was deleted.

4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@
[![level badge][level-badge]](https://github.com/Level/awesome)
[![npm](https://img.shields.io/npm/v/memdown.svg?label=&logo=npm)](https://www.npmjs.com/package/memdown)
[![Node version](https://img.shields.io/node/v/memdown.svg)](https://www.npmjs.com/package/memdown)
[![Travis](https://img.shields.io/travis/com/Level/memdown.svg?logo=travis&label=)](https://travis-ci.com/Level/memdown)
[![Coverage Status](https://coveralls.io/repos/Level/memdown/badge.svg?branch=master&service=github)](https://coveralls.io/github/Level/memdown?branch=master)
[![Test](https://github.com/Level/memdown/actions/workflows/test.yml/badge.svg)](https://github.com/Level/memdown/actions/workflows/test.yml)
[![Coverage Status](https://codecov.io/gh/Level/memdown/branch/master/graph/badge.svg)](https://codecov.io/gh/Level/memdown)
[![JavaScript Style Guide](https://img.shields.io/badge/code_style-standard-brightgreen.svg)](https://standardjs.com)
[![npm](https://img.shields.io/npm/dm/memdown.svg?label=dl)](https://www.npmjs.com/package/memdown)
[![Backers on Open Collective](https://opencollective.com/level/backers/badge.svg?color=orange)](#backers)
Expand Down
3 changes: 1 addition & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
"test": "standard && hallmark && (nyc -s node test.js | faucet) && nyc report",
"test-browsers": "airtap --coverage --verbose test.js",
"test-browsers-local": "airtap --coverage -p local test.js",
"coverage": "nyc report --reporter=text-lcov | coveralls",
marcuslyons marked this conversation as resolved.
Show resolved Hide resolved
"coverage": "nyc report -r lcovonly",
"hallmark": "hallmark --fix",
"dependency-check": "dependency-check . test.js",
"prepublishOnly": "npm run dependency-check"
Expand All @@ -33,7 +33,6 @@
"airtap": "^4.0.3",
"airtap-playwright": "^1.0.1",
"airtap-sauce": "^1.1.0",
"coveralls": "^3.0.2",
"dependency-check": "^3.3.0",
"faucet": "^0.0.1",
"hallmark": "^3.1.0",
Expand Down