blog: the missing structured concurrency guarantees in k6's JavaScript runtime #515
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: www | |
| on: | |
| workflow_dispatch: # Allows manual trigger | |
| schedule: | |
| - cron: "0 */8 * * *" # Runs every 8 hours | |
| pull_request: | |
| push: | |
| branches: | |
| - v4 | |
| jobs: | |
| www: | |
| runs-on: ubuntu-latest | |
| timeout-minutes: 15 | |
| permissions: | |
| id-token: write # Needed for auth with Deno Deploy | |
| contents: read # Needed to clone the repository | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| with: | |
| fetch-depth: 0 | |
| - name: Setup Deno | |
| uses: denoland/setup-deno@v2 | |
| with: | |
| deno-version: v2.6.1 | |
| - name: Serve Website | |
| run: | | |
| deno task dev & | |
| until curl --output /dev/null --silent --head --fail http://127.0.0.1:8000; do | |
| printf '.' | |
| sleep 1 | |
| done | |
| env: | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| JSR_API: ${{ secrets.JSR_API }} | |
| timeout-minutes: 5 | |
| working-directory: ./www | |
| - name: Download Staticalize | |
| run: | | |
| wget https://github.com/thefrontside/staticalize/releases/download/v0.2.2/staticalize-linux.tar.gz \ | |
| -O /tmp/staticalize-linux.tar.gz | |
| tar -xzf /tmp/staticalize-linux.tar.gz -C /usr/local/bin | |
| chmod +x /usr/local/bin/staticalize-linux | |
| - name: Staticalize | |
| run: | | |
| staticalize-linux \ | |
| --site=http://127.0.0.1:8000 \ | |
| --output=www/built \ | |
| --base=https://effection.deno.dev | |
| - run: npx pagefind --site built | |
| working-directory: ./www | |
| - name: Upload to Deno Deploy | |
| uses: denoland/deployctl@v1 | |
| with: | |
| project: effection | |
| entrypoint: "jsr:@std/http/file-server" | |
| root: www/built |