Update Baseline card to feature year more prominently and future Widely available date #1485
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: | |
# No GITHUB_TOKEN permissions, as we only use it to increase API limit. | |
permissions: {} | |
jobs: | |
lint: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Setup Node.js | |
uses: actions/setup-node@v4 | |
with: | |
cache: npm | |
node-version-file: ".nvmrc" | |
- name: Install | |
run: npm ci | |
env: | |
# Increase GitHub API limit. | |
GITHUB_TOKEN: ${{ github.token }} | |
- name: Run prettier | |
run: npx prettier --check . || (exit_code=$? && npx prettier --write . && git diff --color && exit $exit_code) | |
- name: Run ESLint | |
run: npx eslint . | |
- name: Run lit-analyzer | |
run: npm run lit-analyzer -- components | |
- name: Run stylelint | |
run: npx stylelint '**/*.css' || (exit_code=$? && (npx stylelint --fix '**/*.css' || true) && git diff --color && exit $exit_code) | |
- name: Run tsc | |
run: npx tsc --noEmit | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Setup Node.js | |
uses: actions/setup-node@v4 | |
with: | |
cache: npm | |
node-version-file: ".nvmrc" | |
- name: Install | |
run: npm ci | |
- name: Build | |
run: npm run build |