Skip to content

Commit

Permalink
👷 Add Dependabot pipeline (#3)
Browse files Browse the repository at this point in the history
  • Loading branch information
alainncls committed Apr 26, 2023
1 parent 95ee189 commit debb9af
Show file tree
Hide file tree
Showing 5 changed files with 47 additions and 24 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
@@ -1,4 +1,4 @@
name: Build
name: Build Contracts

on: [push]

Expand All @@ -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 WebApp

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
5 changes: 3 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
# Book A Room

[![Build](https://github.com/alainncls/book-a-room/actions/workflows/pipeline.yml/badge.svg)](https://github.com/alainncls/book-a-room/actions/workflows/pipeline.yml)
[![Build Contracts](https://github.com/alainncls/book-a-room/actions/workflows/build-contracts.yml/badge.svg)](https://github.com/alainncls/book-a-room/actions/workflows/build-contracts.yml)
[![Build WebApp](https://github.com/alainncls/book-a-room/actions/workflows/build-webapp.yml/badge.svg)](https://github.com/alainncls/book-a-room/actions/workflows/build-webapp.yml)
[![Coverage Status](https://coveralls.io/repos/github/alainncls/book-a-room/badge.svg?branch=main)](https://coveralls.io/github/alainncls/book-a-room?branch=main)

Two companies, COKE and PEPSI, are sharing an office building but as they are competitors, they don’t trust each other.
Expand Down Expand Up @@ -39,4 +40,4 @@ This DApp is composed of 2 main folders:

## To Do

_Nothing at the moment_
_Nothing at the moment_
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 debb9af

Please sign in to comment.