Skip to content

Commit cb9e4ed

Browse files
authored
Merge pull request #43 from oslabs-beta/ja/CI
Ja/ci
2 parents e02bd7a + 3a2a27f commit cb9e4ed

File tree

5 files changed

+53
-6271
lines changed

5 files changed

+53
-6271
lines changed
Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
# This is a basic workflow to help you get started with Actions
2+
3+
name: Integration-Tests
4+
5+
# Controls when the workflow will run
6+
on:
7+
# Triggers the workflow on push or pull request events but only for the "master" branch
8+
push:
9+
branches:
10+
- ms/**
11+
- gb/**
12+
- jl/**
13+
- mx/**
14+
- ja/**
15+
pull_request:
16+
branches:
17+
- dev
18+
19+
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
20+
jobs:
21+
# This workflow contains a single job called "build"
22+
build:
23+
# The type of runner that the job will run on
24+
runs-on: ubuntu-latest
25+
timeout-minutes: 3
26+
27+
# Steps represent a sequence of tasks that will be executed as part of the job
28+
steps:
29+
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
30+
- uses: actions/checkout@v3
31+
32+
- name: Start Containers
33+
run: docker-compose -f "docker-compose.yml" up -d --build
34+
35+
- name: Install node
36+
uses: actions/setup-node@v1
37+
with:
38+
node-version: 16.x
39+
40+
- name: Install dependencies
41+
run: npm install
42+
43+
- name: Sleep for 30 seconds
44+
run: sleep 30s
45+
shell: bash
46+
47+
- name: Run tests
48+
run: npm run test
49+
50+
- name: Stop containers
51+
if: always()
52+
run: docker-compose -f "docker-compose.yml" down

__tests__/integrationtests.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
const { default: waitForExpect } = require('wait-for-expect');
21
const ksqldb = require('../ksqldb/ksqldb');
32
// Pre-requisite: start a docker container
43
/* To add to README: Prior to running test with 'npm test', please start the ksqlDB

ksqljsTest.js

Lines changed: 0 additions & 197 deletions
This file was deleted.

0 commit comments

Comments
 (0)