Skip to content

Commit

Permalink
feat: Continuous Integration using GitHub actions
Browse files Browse the repository at this point in the history
Jira: O2B-224
  • Loading branch information
noxi333 authored Mar 27, 2020
2 parents b83b2f3 + d5dd04f commit 9939709
Show file tree
Hide file tree
Showing 3 changed files with 87 additions and 0 deletions.
31 changes: 31 additions & 0 deletions .github/workflows/backend.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: Backend

on:
push:
paths:
- 'backend/**'
- 'spec/**'

jobs:
test:
runs-on: ${{ matrix.os }}

strategy:
matrix:
os: [windows-latest, ubuntu-latest]
node-version: [12.x]

steps:
- uses: actions/checkout@v2
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}
- name: Installing dependencies
run: npm ci
working-directory: ./backend
- name: Executing test suite
run: npm test
working-directory: ./backend
env:
CI: true
30 changes: 30 additions & 0 deletions .github/workflows/frontend.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: Frontend

on:
push:
paths:
- 'frontend/**'

jobs:
test:
runs-on: ${{ matrix.os }}

strategy:
matrix:
os: [windows-latest, ubuntu-latest]
node-version: [12.x]

steps:
- uses: actions/checkout@v2
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}
- name: Installing dependencies
run: npm ci
working-directory: ./frontend
- name: Executing test suite
run: npm test
working-directory: ./frontend
env:
CI: true
26 changes: 26 additions & 0 deletions .github/workflows/openapi.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: OpenAPI

on:
push:
paths:
- 'spec/**'

jobs:
validate:
runs-on: ubuntu-latest

steps:
- name: Check out head branch
uses: actions/checkout@v2
with:
path: head
- name: Check out master branch
uses: actions/checkout@v2
with:
ref: master
path: base
- name: Run OpenAPI Diff (from HEAD revision)
uses: mvegter/openapi-diff-action@v0.2.0
with:
head-spec: head/spec/openapi.yaml
base-spec: base/spec/openapi.yaml

0 comments on commit 9939709

Please sign in to comment.