blog: DDEV in 10 minutes on Linux, for ddev/ddev#7631 #1574
Workflow file for this run
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: Test | |
| on: | |
| push: | |
| branches: [main] | |
| pull_request: | |
| branches: [main] | |
| workflow_dispatch: | |
| # Allow this job to clone the repo and create a page deployment | |
| permissions: | |
| contents: read | |
| env: | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| NODE_VERSION: 20 | |
| jobs: | |
| build: | |
| timeout-minutes: 15 | |
| runs-on: ubuntu-24.04 | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: actions/setup-node@v4 | |
| with: | |
| node-version: ${{ env.NODE_VERSION }} | |
| - name: Install dependencies | |
| run: npm ci | |
| - name: Lint | |
| run: npm run textlint || { printf "Run 'ddev textlint' locally to fix it.\n\n"; exit 1; } | |
| - name: Prettier | |
| run: npm run prettier || { printf "\nRun 'ddev prettier' locally to fix it.\n\n"; exit 1; } | |
| - name: Install, build, and upload your site output | |
| uses: withastro/action@v2 | |
| with: | |
| node-version: ${{ env.NODE_VERSION }} |