Elizabeth Mitchell 417e1cfe67 chore: add explicit GitHub workflow permissions
PiperOrigin-RevId: 815915576
2025-10-06 15:49:25 -07:00

41 lines
779 B
YAML

name: Tests
on: [push]
permissions:
contents: read
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 18
cache: npm
- uses: google/wireit@setup-github-actions-caching/v2
- run: npm ci
- run: npm run build
env:
WIREIT_FAILURES: continue
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 18
cache: npm
- uses: google/wireit@setup-github-actions-caching/v2
- run: npm ci
- run: npx playwright install --with-deps
- run: npm test
env:
WIREIT_FAILURES: continue