Modifying build script to copy frontend to OUT_DIR and avoid building… #12
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: Docker Image CI | |
on: | |
push: | |
branches: [ "main" ] | |
pull_request: | |
branches: [ "main" ] | |
jobs: | |
build-and-test: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v2 | |
- name: Build Docker image | |
run: docker build --target rust-builder -t crates-regisstry-test . | |
- name: Run tests in the Docker container | |
run: docker run -e SKIP_BUILDING_FRONTEND=1 crates-regisstry-test cargo test |