Skip to content

Commit 9df23b1

Browse files
committed
add(751): add github actions to execute tests
- created workflow directory and test.yml workflow - added a job that executes existing compose.test.yml file to run tests - job will be triggered when a PR is raised to master or push happens to master ( post merge also will trigger a job ) - added concurrency check so that old job can be cancelled if a new push happens
1 parent eb3c1da commit 9df23b1

File tree

1 file changed

+23
-0
lines changed

1 file changed

+23
-0
lines changed

.github/workflows/test.yml

+23
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
name: Test
2+
3+
on:
4+
push:
5+
branches:
6+
- master
7+
pull_request:
8+
branches:
9+
- master # Only run when PR is raised for master
10+
11+
# This ensures for a single PR one job is run in case of multiple runs
12+
concurrency:
13+
group: build-${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
14+
cancel-in-progress: true
15+
16+
jobs:
17+
test:
18+
runs-on: ubuntu-latest
19+
steps:
20+
- uses: actions/checkout@v2
21+
# Run Tests
22+
- name: Run Tests
23+
run: docker-compose -f "docker-compose.test.yml" up --build

0 commit comments

Comments
 (0)