Skip to content

Commit

Permalink
d1
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexSkrypnyk committed Mar 14, 2024
1 parent 72079bb commit 18880b1
Showing 1 changed file with 19 additions and 15 deletions.
34 changes: 19 additions & 15 deletions .github/workflows/drevops-test-docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,29 +24,33 @@ jobs:
- name: Adjust git config to allow running git-related tests
run: git config --global safe.directory '*'

- name: Install Ahoy
run: os=$(uname -s | tr [:upper:] [:lower:]) && architecture=$(case $(uname -m) in x86_64 | amd64) echo "amd64" ;; aarch64 | arm64 | armv8) echo "arm64" ;; *) echo "amd64" ;; esac) && sudo wget -q https://github.com/ahoy-cli/ahoy/releases/latest/download/ahoy-bin-$os-$architecture -O /usr/local/bin/ahoy && sudo chown $USER /usr/local/bin/ahoy && chmod +x /usr/local/bin/ahoy
# - name: Install Ahoy
# run: os=$(uname -s | tr [:upper:] [:lower:]) && architecture=$(case $(uname -m) in x86_64 | amd64) echo "amd64" ;; aarch64 | arm64 | armv8) echo "arm64" ;; *) echo "amd64" ;; esac) && sudo wget -q https://github.com/ahoy-cli/ahoy/releases/latest/download/ahoy-bin-$os-$architecture -O /usr/local/bin/ahoy && sudo chown $USER /usr/local/bin/ahoy && chmod +x /usr/local/bin/ahoy
#
# - name: Install Aspell
# run: sudo apt-get update -y && sudo apt-get install -y aspell

- name: Install Aspell
run: sudo apt-get update -y && sudo apt-get install -y aspell
# - name: Setup PHP
# uses: shivammathur/setup-php@v2

- name: Setup PHP
uses: shivammathur/setup-php@v2
# - name: Build site
# working-directory: .drevops/docs
# run: ahoy build

- name: Build site
working-directory: .drevops/docs
run: ahoy build

- name: Check spelling
working-directory: .drevops/docs
run: ahoy lint
# - name: Check spelling
# 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

- name: Run tests
working-directory: .drevops/docs
run: ahoy test
run: ./docs/.utils/test.sh
working-directory: .drevops

- name: Upload coverage report as an artifact
uses: actions/upload-artifact@v4
Expand Down

0 comments on commit 18880b1

Please sign in to comment.