Skip to content

Commit a891a11

Browse files
authored
build (tests) add github workflow (#2)
1 parent d9e6049 commit a891a11

File tree

2 files changed

+29
-0
lines changed

2 files changed

+29
-0
lines changed

.github/workflows/pr.yml

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
name: PR
2+
3+
on:
4+
push:
5+
paths-ignore:
6+
- README.md
7+
8+
workflow_dispatch:
9+
10+
jobs:
11+
tests:
12+
name: Tests
13+
runs-on: ubuntu-latest
14+
steps:
15+
- uses: actions/checkout@v2
16+
17+
- uses: actions/setup-node@v2-beta
18+
with:
19+
node-version: '16'
20+
21+
- name: Run npm install
22+
run: npm ci
23+
24+
- name: Build
25+
run: npm run build
26+
27+
- name: Run Tests
28+
run: npm run test

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ This package allows to run tests that use `docker-compose` and supports multi-st
55
## How it works?
66

77
This runner creates docker-compose services in stopped state and then starts them accordingly to the stages. It will start the new stage only when all the services on current one will be running. When all the stages are done the actual Jest tests will be run. After the tests will be completed the services will be teared down.
8+
89
## Setup
910

1011
1. Run `npm install --save-dev docker-compose-jest-runner`

0 commit comments

Comments
 (0)