chore(deps): update dependency bootstrap to v5 #92
This file contains 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: Tests | |
on: | |
pull_request: | |
branches: [main] | |
types: [opened, synchronize] | |
jobs: | |
unit: | |
runs-on: macos-12 | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Cache Modules | |
uses: actions/cache@v4 | |
with: | |
path: "**/node_modules" | |
key: node-deps-${{ hashFiles('**/package-lock.json') }} | |
- name: Install npm packages | |
run: npm ci | |
- name: Run Tests | |
run: npm run test | |
e2e: | |
timeout-minutes: 60 | |
runs-on: macos-12 | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: ruby/setup-ruby@v1 | |
with: | |
bundler-cache: true | |
- name: Cache jekyll | |
uses: actions/cache@v4 | |
with: | |
path: _cache | |
key: jekyll-${{ hashFiles('**/*.md') }} | |
restore-keys: jekyll- | |
- name: Run server | |
run: bundle exec jekyll build | |
- uses: actions/setup-node@v4 | |
with: | |
node-version: 20 | |
- name: Cache Modules | |
uses: actions/cache@v4 | |
with: | |
path: "**/node_modules" | |
key: node-deps-${{ hashFiles('**/package-lock.json') }} | |
- name: Install npm packages | |
run: npm ci | |
- name: Install Playwright Browsers | |
run: npx playwright install --with-deps | |
- name: Run Playwright tests | |
run: npx playwright test | |
- uses: actions/upload-artifact@v4 | |
if: always() | |
with: | |
name: playwright-report | |
path: playwright-report/ | |
retention-days: 30 |