Skip to content

Commit

Permalink
[chore] : HURL verison 4.0.0으로 업그레이드 (#358)
Browse files Browse the repository at this point in the history
  • Loading branch information
devxb authored Jul 19, 2023
1 parent b27e7fd commit bb9e0ef
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
8 changes: 8 additions & 0 deletions .github/workflows/e2e.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,19 +13,27 @@ jobs:
steps:
- name: checkout
uses: actions/checkout@v3

- name: docker setup
uses: docker-practice/actions-setup-docker@master

- name: docker network setup
run: docker network create e2e-net

- name: run dbms
run: docker run --rm -it --name database --network e2e-net -e MYSQL_ROOT_PASSWORD=0000 -e MYSQL_DATABASE=luffy -d mysql:8.0.33

- name: build nalab-server
run: ./gradlew clean build

- name: build nalab-server-docker-image
run: docker build --tag luffy:e2e --build-arg DB_URL=jdbc:mysql://database:3306/luffy --build-arg DB_USERNAME=root --build-arg DB_PASSWORD=0000 --build-arg JWT_SECRET=fore2e .

- name: run nalab-server
run: docker run --rm -it --name nalab-server --network e2e-net -d luffy:e2e

- name: build hurl image
run: docker build --tag hurl:e2e support/e2e/

- name: e2e test
run: docker run --rm --network e2e-net hurl:e2e
4 changes: 2 additions & 2 deletions support/e2e/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ RUN wget https://github.com/jwilder/dockerize/releases/download/$DOCKERIZE_VERSI

RUN apt-get install -y curl

RUN curl --location --remote-name https://github.com/Orange-OpenSource/hurl/releases/download/3.0.1/hurl_3.0.1_amd64.deb
RUN apt-get update && apt-get install -y ./hurl_3.0.1_amd64.deb
RUN curl -k --location --remote-name https://github.com/Orange-OpenSource/hurl/releases/download/4.0.0/hurl_4.0.0_amd64.deb
RUN apt-get update && apt-get install -y ./hurl_4.0.0_amd64.deb

ENTRYPOINT dockerize -wait tcp://nalab-server:8080 -timeout 300s && hurl --very-verbose --color --test hurls/*.hurl

0 comments on commit bb9e0ef

Please sign in to comment.