Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
45 changes: 45 additions & 0 deletions .github/workflows/client.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
# This workflow will do a clean install of node dependencies, build the source code and run tests across different versions of node
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-nodejs-with-github-actions

name: Client Lint

on:
push:
branches: [ develop, master ]
paths: [ 'client/**' ]
pull_request:
branches: [ develop, master ]
paths: [ 'client/**' ]

jobs:
test:
runs-on: ubuntu-latest

strategy:
matrix:
node-version: [ 12.x ]

# Run all `run` commands in the cliend directory
defaults:
run:
working-directory: client

steps:
- uses: actions/checkout@v2

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

- name: Cache node modules
uses: actions/cache@v2
with:
path: "**/node_modules"
key: client-${{ matrix.node-version }}-modules-${{ hashFiles('**/package-lock.json') }}

- name: Install dependencies
run: npm ci

- name: Lint
run: npm run lint
17 changes: 17 additions & 0 deletions .github/workflows/docker.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
name: Backend Docker Build

on:
push:
branches: [ develop, master ]
pull_request:
branches: [ develop, master ]


jobs:
build:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- name: Build the Docker image
run: docker build . --tag vote:$(date +%s)
40 changes: 40 additions & 0 deletions .github/workflows/service.ts.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
# This workflow will do a clean install of node dependencies, build the source code and run tests across different versions of node
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-nodejs-with-github-actions

name: Service Lint

on:
push:
branches: [ develop, master ]
paths: [ 'service/**', 'package.json' ]
pull_request:
branches: [ develop, master ]
paths: [ 'service/**', 'package.json' ]

jobs:
test:
runs-on: ubuntu-latest

strategy:
matrix:
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: Cache node modules
uses: actions/cache@v2
with:
path: "**/node_modules"
key: service-${{ matrix.node-version }}-modules-${{ hashFiles('**/package-lock.json') }}

- name: Install dependencies
run: npm ci

- name: Lint
run: npm run lint
8 changes: 0 additions & 8 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,9 +1,3 @@
.idea
gradlew
gradlew.bat
DEdDASS.iml
package-lock.json

# testing
/coverage

Expand All @@ -16,9 +10,7 @@ package-lock.json
.env.development.local
.env.test.local
.env.production.local
.gradle/
.settings/
gradle/

npm-debug.log*
yarn-debug.log*
Expand Down
13 changes: 0 additions & 13 deletions .travis.yml

This file was deleted.

Loading