Skip to content

Update app.js

Update app.js #30

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