Turn homepage "You might know me from…" into an auto-scrolling carousel #194
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
| # Runs build and test | |
| name: CI | |
| on: | |
| push: | |
| branches: [main] | |
| pull_request: | |
| branches: [main] | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Use Node.js 18.x | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: 18.x | |
| cache: npm | |
| cache-dependency-path: package-lock.json | |
| - name: Restore Eleventy image cache | |
| uses: actions/cache@v4 | |
| with: | |
| path: | | |
| _site/**/*.blurred | |
| _site/**/*-320w.* | |
| _site/**/*-640w.* | |
| _site/**/*-1280w.* | |
| _site/**/*-1920w.* | |
| key: ${{ runner.os }}-11ty-images-${{ hashFiles('img/**/*', 'posts/**/*.{jpg,jpeg,png,gif,webp,svg,avif}', '_includes/**/*', '_11ty/blurry-placeholder.js', '_11ty/img-dim.js', '_11ty/srcset.js', '.eleventy.js') }} | |
| restore-keys: | | |
| ${{ runner.os }}-11ty-images- | |
| - run: npm ci --no-audit --no-fund | |
| - run: npm run build-ci |