add missing file name #210
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 & Test | |
on: | |
push: | |
branches: "**" | |
pull_request: | |
branches: [main] | |
# env: | |
# DOCKER_ENV_FILE: ".github/workflows/docker.env" | |
jobs: | |
build-test: | |
runs-on: ubuntu-latest | |
# services: | |
# alpine: | |
# image: alpine | |
steps: | |
- uses: actions/checkout@v3 | |
- name: docker build | |
uses: docker/build-push-action@v3 | |
with: | |
push: false | |
tags: allaboutapps.dev/cra-template:${{ github.sha }} | |
# volumes: /var/run/docker.sock:/var/run/docker.sock | |
- name: docker run | |
run: docker run -d --name=container -it allaboutapps.dev/cra-template:${{ github.sha }} | |
- name: create-react-app | |
run: docker exec container yarn create react-app my-app-ci --template file://cra-template/ | |
- name: build (scaffolded project) | |
run: docker exec container bash -c "cd my-app-ci && yarn build && yarn lint" | |
- name: test (scaffolded project) | |
run: docker exec container bash -c "cd my-app-ci && yarn test:ci" | |
- name: test docker-entrypoint.sh patching | |
run: docker exec container bash -c "cd my-app-ci && ./scripts/test-docker-entrypoint.sh" | |