fix: example app replacement #368
Workflow file for this run
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: CI | |
on: | |
push: | |
branches: | |
- '**' | |
pull_request: | |
branches: | |
- '**' | |
jobs: | |
lint: | |
runs-on: ubuntu-latest | |
timeout-minutes: 30 | |
steps: | |
- uses: actions/setup-node@v4 | |
with: | |
node-version: 18.x | |
- uses: actions/checkout@v4 | |
- name: Restore Dependency Cache | |
uses: actions/cache@v4 | |
with: | |
path: ~/.npm | |
key: ${{ runner.OS }}-dependency-cache-${{ hashFiles('**/package.json') }} | |
- run: npm install | |
- run: npm run lint | |
build: | |
runs-on: ubuntu-latest | |
timeout-minutes: 30 | |
needs: | |
- lint | |
steps: | |
- uses: actions/setup-node@v4 | |
with: | |
node-version: 18.x | |
- uses: actions/checkout@v4 | |
- name: Restore Dependency Cache | |
uses: actions/cache@v4 | |
with: | |
path: ~/.npm | |
key: ${{ runner.OS }}-dependency-cache-${{ hashFiles('**/package.json') }} | |
- run: npm install | |
- run: npm run build |