Bump brace-expansion from 1.1.11 to 1.1.12 in the npm_and_yarn group #179
Workflow file for this run
This file contains hidden or 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: Docker Build Test | |
on: | |
pull_request: | |
paths: | |
- "**.js" | |
- "**.jsx" | |
- "**.ts" | |
- "**.tsx" | |
- "package.json" | |
- "package-lock.json" | |
- "Dockerfile" | |
- ".dockerignore" | |
- ".github/workflows/docker-test.yml" | |
permissions: | |
contents: read | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 | |
- name: "Build Docker Image" | |
run: | | |
docker build -t labconnect-frontend . | |
- name: "Run Docker Container" | |
run: | | |
docker run -d --name labconnect-frontend-container labconnect-frontend | |
sleep 30 | |
docker logs labconnect-frontend-container | |
docker stop labconnect-frontend-container | |
- name: "Check for Container Exit Code" | |
id: check_exit_code | |
run: | | |
docker inspect labconnect-frontend-container --format='{{.State.ExitCode}}' | |
docker rm labconnect-frontend-container | |
- name: "Fail if Container Fails" | |
if: steps.check_exit_code.outputs.exit_code != '0' | |
run: exit 1 |