chore(ci dep)(deps): bump actions/checkout from 3 to 4 #67
Workflow file for this run
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: Linting & Execute Integration Test in the Container | |
on: | |
push: | |
branches: | |
- dependabot/** #branches are generated by https://github.com/dependabot | |
pull_request: | |
types: | |
- opened | |
- synchronize | |
jobs: | |
build-docker-image: | |
name: Step 1 - Workflow Call | |
secrets: "inherit" | |
uses: ./.github/workflows/build-container.yml | |
test: | |
env: | |
image_name: ghcr.io/${{ github.repository }}/rtldev_mid_dnscontrol:latest | |
docker_options: | | |
--name dstack-dnscontrol | |
--volume ${{ github.workspace }}:/usr/share/rtldev-middleware-dnscontrol-dnsconfig:cached | |
docker_exec_commands: | | |
cd /usr/share/rtldev-middleware-dnscontrol-dnsconfig | |
export GITHUB_CLI=true | |
zsh /post-create.sh && zsh ./tests/integration.sh | |
name: Step 2 - Linting & Testing | |
runs-on: ubuntu-latest | |
needs: build-docker-image | |
timeout-minutes: 12 | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
with: | |
submodules: recursive | |
fetch-depth: 0 | |
- name: Login to GitHub Container Registry | |
uses: docker/login-action@v2 | |
with: | |
registry: ghcr.io | |
username: ${{ github.actor }} | |
password: ${{ secrets.GITHUB_TOKEN }} | |
- name: Run Tests & Lint codebase in a docker Container | |
run: | | |
DOCKER_OPTS=${docker_options//$'\n'/' '} | |
docker run -dit $DOCKER_OPTS ${{ env.image_name }} | |
docker exec dstack-dnscontrol zsh -c "su - vscode -c \"${docker_exec_commands//$'\n'/';'}\"" |