Skip to content

Commit

Permalink
Merge branch 'master' into greenkeeper/fs-extra-9.0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
ajfisher authored Oct 24, 2020
2 parents 615d3e8 + e66ca79 commit 9f7a17c
Show file tree
Hide file tree
Showing 5 changed files with 981 additions and 883 deletions.
7 changes: 7 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
version: 2
updates:
- package-ecosystem: npm
directory: "/"
schedule:
interval: daily
open-pull-requests-limit: 10
52 changes: 43 additions & 9 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
name: Build process
on: [push, pull_request]
name: Build, test and coverage
on: pull_request

jobs:
test:
name: Build and test
runs-on: ubuntu-latest
test-matrix:
strategy:
matrix:
node: [8, 10, 12]
node: [10, 12, 14]
name: Test build Node v ${{ matrix.node }}
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v1
Expand All @@ -18,17 +18,51 @@ jobs:
node-version: ${{ matrix.node }}

- name: Cache node modules
id: cache-node-modules
uses: actions/cache@v1
with:
path: node_modules
key: build-${{ matrix.node }}-${{ hashFiles('**/package-lock.json') }}
restore-keys: build-${{ matrix.node }}-${{ hashFiles('**/package-lock.json') }}
path: ./node_modules
key: test-${{ matrix.node }}-${{ hashFiles('**/package-lock.json') }}
restore-keys: test-${{ matrix.node }}-${{ hashFiles('**/package-lock.json') }}

- name: Install deps
if: steps.cache-node-modules.outputs.cache-hit != 'true'
run: npm install

- name: Lint code
run: make lint

- name: Run tests
run: make tests

test-success:
runs-on: ubuntu-latest
needs: test-matrix
steps:
- name: Matrix tests passed
run: echo Done!

test-coverage:
runs-on: ubuntu-latest
needs: test-success
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v1
with:
node-version: 12
- uses: actions/cache@v1
id: cache-node-modules
with:
path: ./node_modules
key: test-12-${{hashFiles('./package-lock.json')}}
restore-keys: test-12-${{hashFiles('./package-lock.json')}}
- name: Install modules
if: steps.cache-node-modules.outputs.cache-hit != 'true'
run: npm install
- name: Test with coverage
run: make test-coverage
- name: Coveralls
uses: coverallsapp/github-action@master
with:
github-token: ${{ secrets.GITHUB_TOKEN }}

40 changes: 0 additions & 40 deletions .github/workflows/coverage.yml

This file was deleted.

Loading

0 comments on commit 9f7a17c

Please sign in to comment.