Skip to content

Commit

Permalink
👷 Add Dependabot pipeline (#3)
Browse files Browse the repository at this point in the history
  • Loading branch information
alainncls authored Apr 26, 2023
1 parent 95ee189 commit 5b51556
Show file tree
Hide file tree
Showing 4 changed files with 43 additions and 21 deletions.
10 changes: 10 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
version: 2
updates:
- package-ecosystem: "npm"
directory: "/blockchain"
schedule:
interval: "weekly"
- package-ecosystem: "npm"
directory: "/www"
schedule:
interval: "weekly"
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ jobs:
uses: actions/setup-node@v2
with:
node-version: '16'

- name: Show NodeJS version
run: npm --version

Expand All @@ -32,24 +33,3 @@ jobs:
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
path-to-lcov: ./blockchain/coverage/lcov.info

build-webapp:

name: Build web application
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2

- name: Setup NodeJS 16
uses: actions/setup-node@v2
with:
node-version: '16'
- name: Show NodeJS version
run: npm --version

- name: Install Dependencies
run: cd www && npm ci

- name: Run tests
run: cd www && npm run test
26 changes: 26 additions & 0 deletions .github/workflows/build-webapp.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: Build

on: [push]

jobs:
build-webapp:

name: Build web application
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2

- name: Setup NodeJS 16
uses: actions/setup-node@v2
with:
node-version: '16'

- name: Show NodeJS version
run: npm --version

- name: Install Dependencies
run: cd www && npm ci

- name: Run tests
run: cd www && npm run test
6 changes: 6 additions & 0 deletions blockchain/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 5b51556

Please sign in to comment.