Skip to content

Commit

Permalink
Merge branch 'master' into fix-untracked-revert
Browse files Browse the repository at this point in the history
  • Loading branch information
okonet committed Apr 4, 2020
2 parents b880857 + 662a3a5 commit df4368b
Show file tree
Hide file tree
Showing 5 changed files with 96 additions and 42 deletions.
9 changes: 4 additions & 5 deletions .appveyor.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,3 @@
###
### .appveyor.yml
###

environment:
matrix:
- nodejs_version: '13'
Expand Down Expand Up @@ -32,4 +28,7 @@ branches:
only:
- master
- next
- /^greenkeeper/.*$/
- beta
- alpha

skip_tags: true
1 change: 1 addition & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
* text=auto eol=lf
90 changes: 90 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,90 @@
name: CI

on:
push:
# Run on pushes to specific branches
branches:
- master
- next
- beta
- alpha
# Do not run on tags
tags-ignore:
- "*"
pull_request:
# Run on to branches with an open PR
branches:
- "*"

jobs:
test:
strategy:
matrix:
# Test with Node.js v10 (LTS), v12 (LTS), and v13 (latest)
node:
- 10
- 12
- 13
# Test with Ubuntu and macOS
os:
- ubuntu-latest
name: Node.js v${{ matrix.node }} on ${{ matrix.os }}
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node }}
# Get yarn's cache dir path
- name: Get yarn cache directory path
id: yarn-cache-dir-path
run: echo "::set-output name=dir::$(yarn cache dir)"
# Cache the above yarn cache dir
- uses: actions/cache@v1
id: yarn-cache # use this to check for `cache-hit` (`steps.yarn-cache.outputs.cache-hit != 'true'`)
with:
path: ${{ steps.yarn-cache-dir-path.outputs.dir }}
key: yarn-${{ runner.os }}-${{ runner.node }}-${{ hashFiles('**/yarn.lock') }}
restore-keys: |
yarn-${{ runner.os }}-${{ runner.node }}-
# Print current Node.js version
- run: node --version
# Print current Yarn version
- run: yarn --version
# Print current Git version
- run: git --version
# Install node_modules
- run: yarn
# Run tests
- run: yarn test
# Upload coverage artifact from a single matrix entry
- uses: actions/upload-artifact@v1
if: matrix.os == 'ubuntu-latest' && matrix.node == '13'
with:
name: coverage
path: coverage

codecov:
name: Codecov
runs-on: ubuntu-latest
needs: test
steps:
- uses: actions/checkout@v2
# Download coverage artifact
- uses: actions/download-artifact@v1
with:
name: coverage
# Run codecov.io
- uses: codecov/codecov-action@v1

release:
name: Release
runs-on: ubuntu-latest
needs: test
steps:
# Release using semantic-release.
# While this runs on all branches, it will only release latest from master
- uses: codfish/semantic-release-action@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
36 changes: 0 additions & 36 deletions .travis.yml

This file was deleted.

2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# 🚫💩 lint-staged [![Build Status for Linux](https://travis-ci.org/okonet/lint-staged.svg?branch=master)](https://travis-ci.org/okonet/lint-staged) [![Build Status for Windows](https://ci.appveyor.com/api/projects/status/github/okonet/lint-staged?branch=master&svg=true)](https://ci.appveyor.com/project/okonet/lint-staged) [![npm version](https://badge.fury.io/js/lint-staged.svg)](https://badge.fury.io/js/lint-staged) [![Codecov](https://codecov.io/gh/okonet/lint-staged/branch/master/graph/badge.svg)](https://codecov.io/gh/okonet/lint-staged)
# 🚫💩 lint-staged ![GitHub Actions](https://github.com/okonet/lint-staged/workflows/CI/badge.svg) [![Build Status for Windows](https://ci.appveyor.com/api/projects/status/github/okonet/lint-staged?branch=master&svg=true)](https://ci.appveyor.com/project/okonet/lint-staged) [![npm version](https://badge.fury.io/js/lint-staged.svg)](https://badge.fury.io/js/lint-staged) [![Codecov](https://codecov.io/gh/okonet/lint-staged/branch/master/graph/badge.svg)](https://codecov.io/gh/okonet/lint-staged)

Run linters against staged git files and don't let :poop: slip into your code base!

Expand Down

0 comments on commit df4368b

Please sign in to comment.