Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create ci.yml #3

Open
wants to merge 10 commits into
base: master
Choose a base branch
from
Open
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
44 changes: 44 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
name: CI

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

# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:

# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:

build:
runs-on: ubuntu-latest
env:
DOCKERHUB_USER: echu888
DOCKERHUB_PW: 09235751-050f-4851-a295-803790e79652

steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2

- name: Install npm packages
run: npm install

- name: Initialize docker swarm
run: docker swarm init

- name: Login to docker hub
run: echo "$DOCKERHUB_PW" | docker login -u "$DOCKERHUB_USER" --password-stdin

- name: Run installer script
run: npm run pull

- name: Link in test configuration for docker swarm
run: ln -s ../docker-compose.test.yml workdir/docker-compose.test.yml

- name: Show GitHub commit information
run: scripts/commit_info.sh

- name: Run tests
run: npm run test
21 changes: 0 additions & 21 deletions .travis.yml

This file was deleted.

Loading