Skip to content

Commit

Permalink
new way
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexSkrypnyk committed Mar 14, 2024
1 parent f8c75cc commit 1952c53
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 13 deletions.
2 changes: 1 addition & 1 deletion .drevops/docs/.utils/publish.sh
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ build() {
echo "Copy combined dir into the container."
docker compose cp "${combined_repo_dir}/." mkdocs:"/tmp/build"
docker compose exec mkdocs git config --global --add safe.directory "/tmp/build"
# The credentials below are only used to produce some entermediate commits
# The credentials below are only used to produce some intermediate commits
# while building the docs. They are not used to push the code.
docker compose exec mkdocs git config --global user.name "Deployment robot"
docker compose exec mkdocs git config --global user.email "[email protected]"
Expand Down
17 changes: 5 additions & 12 deletions .github/workflows/drevops-test-docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,28 +12,18 @@ jobs:
drevops-test-docs:
runs-on: ubuntu-latest

container:
image: drevops/ci-runner:latest
env:
# Prevent GitHub overriding the Docker config.
DOCKER_CONFIG: /root/.docker
DREVOPS_DEV_TEST_COVERAGE_DIR: /tmp/.drevops-coverage-html
env:
DREVOPS_DEV_TEST_COVERAGE_DIR: /tmp/.drevops-coverage-html

steps:
- name: Checkout code
uses: actions/checkout@v4
with:
persist-credentials: false

- name: Process codebase to run in CI
run: find . -name "docker-compose.yml" -print0 | xargs -0 -I {} sh -c "sed -i -e ''/###/d'' {} && sed -i -e ''s/##//'' {}"

- name: Adjust git config to allow running git-related tests
run: git config --global safe.directory '*'

- name: Create network
run: docker network create amazeeio-network

- name: Build site
working-directory: .drevops/docs
run: ahoy build
Expand All @@ -42,6 +32,9 @@ jobs:
working-directory: .drevops/docs
run: ahoy lint

- name: Install Kcov
run: wget https://github.com/SimonKagstrom/kcov/releases/download/v42/kcov-amd64.tar.gz && tar -xf kcov-amd64.tar.gz && sudo mv ./usr/local/bin/kcov /usr/local/bin/kcov && kcov --version

- name: Run tests
working-directory: .drevops/docs
run: ahoy test
Expand Down

0 comments on commit 1952c53

Please sign in to comment.