Update app.js #30
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: build and run Docker image locally and run Liatrio tests | |
on: | |
push: | |
branches: | |
- main | |
jobs: | |
build-and-run-docker: | |
runs-on: ubuntu-latest | |
steps: | |
- name: fetch code | |
uses: actions/checkout@v2 | |
- name: build Docker image | |
run: docker build -t test-image . | |
- name: run Docker container | |
run: docker run -d -p 8080:80 test-image | |
- name: run tests | |
run: | | |
docker pull ghcr.io/liatrio/github-actions/apprentice-action:latest | |
docker run -p 80:80 ghcr.io/liatrio/github-actions/apprentice-action:latest | |