Skip to content

Commit 68103bd

Browse files
committed
create GitHub action
1 parent 341ad9c commit 68103bd

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

.github/workflows/docker_compose.yml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
name: Docker Compose CI
2+
3+
on:
4+
push:
5+
branches: [ "master" ]
6+
pull_request:
7+
branches: [ "master" ]
8+
9+
jobs:
10+
build:
11+
runs-on: ubuntu-latest
12+
steps:
13+
- name: Checkout code
14+
uses: actions/checkout@v3
15+
- name: Build docker images
16+
run: docker-compose build -d
17+
- name: Enter node app container
18+
run: docker exec -it app bash
19+
- name: Run tests
20+
run: npm test

0 commit comments

Comments
 (0)