Skip to content

Commit

Permalink
Create main.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
krakerag authored Nov 16, 2023
1 parent 855e9e7 commit 735cb5d
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
name: Test
on:
pull_request:
push: { branches: main }

jobs:
test:
name: Run test suite
runs-on: ubuntu-latest

steps:
- name: Checkout code
uses: actions/checkout@v2

- name: Build docker image
run: docker build -t dancer .

- name: Run docker image with entrypoint
run: docker run -d -p 3001:3000 --name dancer_container dancer

- name: Validate endpoint works
run: curl -i http://127.0.0.1:3001/

0 comments on commit 735cb5d

Please sign in to comment.