Build ngui test image and run tests on it - started by nicolasrbr #78
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: Build ngui test image and run tests on it | |
| run-name: Build ngui test image and run tests on it - started by ${{ github.actor }} | |
| permissions: read-all | |
| on: | |
| pull_request: | |
| types: [opened, synchronize] | |
| paths: | |
| - "ngui/**" | |
| workflow_dispatch: | |
| jobs: | |
| build_image: | |
| runs-on: ubuntu-latest | |
| concurrency: | |
| group: build-ngui | |
| steps: | |
| - name: Check out code | |
| uses: actions/checkout@v3 | |
| - name: Login to Docker Hub (optional) | |
| env: | |
| username: ${{ secrets.EXT_DOCKER_LOGIN }} | |
| password: ${{ secrets.EXT_DOCKER_TOKEN }} | |
| if: ${{ env.username != '' && env.password != ''}} | |
| uses: docker/login-action@v3 | |
| with: | |
| username: ${{ env.username }} | |
| password: ${{ env.password }} | |
| - name: Build image | |
| run: bash -x ngui/build.sh build | |
| - name: Build test image and run tests | |
| run: bash -x ngui/run_test.sh |