13 - Using Caching #1
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: 13 - Using Caching | |
on: | |
workflow_dispatch: | |
inputs: | |
use-cache: | |
description: Whether to execute cache step | |
type: boolean | |
default: true | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
defaults: | |
run: | |
working-directory: 13-caching/react-app | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
- name: Setup Node | |
uses: actions/setup-node@v3 | |
with: | |
node-version: '20.x' | |
- name: Install dependencies | |
run: npm ci | |
- name: Testing | |
run: npm run test | |
- name: Building | |
run: npm run build | |
- name: Deploying to nonprod | |
run: echo "Deploying to nonprod" |