Skip to content

Commit ec2fb11

Browse files
authored
Merge pull request #1 from bobuhiro11/add_gh_action
add github action
2 parents eeaaa5a + 804829b commit ec2fb11

1 file changed

Lines changed: 21 additions & 0 deletions

File tree

.github/workflows/action.yaml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
name: action
2+
on: [push, pull_request]
3+
jobs:
4+
lint:
5+
runs-on: ubuntu-20.04
6+
steps:
7+
- uses: actions/checkout@v2
8+
- name: hadolint
9+
run: docker run --rm -i hadolint/hadolint < Dockerfile
10+
test:
11+
runs-on: ubuntu-20.04
12+
steps:
13+
- uses: actions/checkout@v2
14+
- name: Init docker-compose
15+
run: |
16+
docker-compose up -d
17+
sleep 1800
18+
- name: Exec OpenStack CLI
19+
run: |
20+
docker-compose logs -t --tail=100
21+
docker-compose exec -T --user stack devstack /bin/bash -c 'source devstack/openrc admin admin; openstack compute service list'

0 commit comments

Comments
 (0)