Skip to content

Commit

Permalink
chore(redfork) lint
Browse files Browse the repository at this point in the history
  • Loading branch information
coderaiser committed Aug 15, 2021
1 parent 9b831fc commit 6df143d
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 40 deletions.
63 changes: 25 additions & 38 deletions .github/workflows/nodejs.yml
@@ -1,45 +1,32 @@
name: Node CI

on: [push, pull_request]

'on':
- push
- pull_request
jobs:
build:

runs-on: ubuntu-latest

strategy:
matrix:
node-version: [14.x, 15.x]

node-version:
- 14.x
- 16.x
steps:
- uses: actions/checkout@v1
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}

- name: Install Redrun
run:
npm i redrun -g

- name: Install
run:
npm install

- name: Bootstrap
run:
redrun bootstrap

- name: Lint
run:
redrun lint

- name: Coverage
run:
redrun coverage report

- name: Coveralls
uses: coverallsapp/github-action@master
with:
github-token: ${{ secrets.GITHUB_TOKEN }}

- uses: actions/checkout@v1
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}
- name: Install Redrun
run: npm i redrun -g
- name: Install
run: npm install
- name: Bootstrap
run: redrun bootstrap
- name: Lint
run: redrun lint
- name: Coverage
run: redrun coverage report
- name: Coveralls
uses: coverallsapp/github-action@master
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
4 changes: 2 additions & 2 deletions bin/redfork.js
Expand Up @@ -9,7 +9,7 @@ import yargsParser from 'yargs-parser';
import picomatch from 'picomatch';

const joinCwd = (a) => (b) => join(a, b);
const one = (f) => (a) => f(a)
const one = (f) => (a) => f(a);

export default main();

Expand Down Expand Up @@ -55,7 +55,7 @@ async function main() {
});
const dirs = readdirSync('.')
.filter(one(match))
.map(joinCwd(dir))
.map(joinCwd(dir));

for (const dir of dirs) {
const [e] = tryCatch(execSync, command, {
Expand Down

0 comments on commit 6df143d

Please sign in to comment.