Skip to content

Commit e1ee000

Browse files
committed
Switch from Travis to GitHub Actions
1 parent 75d6bfc commit e1ee000

File tree

3 files changed

+26
-16
lines changed

3 files changed

+26
-16
lines changed

.github/workflows/ci.yml

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
name: Continuous Integration
2+
on:
3+
push:
4+
pull_request:
5+
jobs:
6+
build:
7+
runs-on: ubuntu-latest
8+
steps:
9+
- uses: actions/checkout@v2
10+
- id: nvm
11+
run: echo "##[set-output name=NVMRC;]$(cat .nvmrc)"
12+
- uses: actions/setup-node@v2-beta
13+
with:
14+
node-version: '${{ steps.nvm.outputs.NVMRC }}'
15+
- uses: actions/cache@v2
16+
with:
17+
path: ~/.npm
18+
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
19+
restore-keys: |
20+
${{ runner.os }}-node-
21+
- run: npm install --no-optional --no-audit --no-fund --progress=false
22+
- run: npm run lint
23+
- run: npm run test
24+
# Log the contents of the published package in CI builds.
25+
- run: npm pack --loglevel notice 2>&1 >/dev/null | sed -e 's/^npm notice //' && rm *.tgz

.travis.yml

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

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# [eslint-config-torchbox](https://www.npmjs.com/package/eslint-config-torchbox) [<img src="https://raw.githubusercontent.com/torchbox/eslint-config-torchbox/main/.github/eslint-logo.svg?sanitize=true" alt="ESLint" width="90" height="90" align="right">](https://eslint.org)
22

3-
[![eslint-config-torchbox on npm](https://img.shields.io/npm/v/eslint-config-torchbox.svg)](https://www.npmjs.com/package/eslint-config-torchbox) [![Build Status](https://travis-ci.com/torchbox/eslint-config-torchbox.svg?branch=main)](https://travis-ci.com/torchbox/eslint-config-torchbox)
3+
[![eslint-config-torchbox on npm](https://img.shields.io/npm/v/eslint-config-torchbox.svg)](https://www.npmjs.com/package/eslint-config-torchbox) [![Build status](https://github.com/torchbox/eslint-config-torchbox/workflows/Continuous%20Integration/badge.svg)](https://github.com/torchbox/eslint-config-torchbox/actions)
44

55
> Shareable ESLint config following Torchbox’s code style.
66

0 commit comments

Comments
 (0)