Skip to content

feat(04-using-actions): add test command and default working directory #4

feat(04-using-actions): add test command and default working directory

feat(04-using-actions): add test command and default working directory #4

name: 04 - Using Actions
on: push
jobs:
build:
runs-on: ubuntu-latest
defaults:
run:
working-directory: 04-using-actions/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: Run Unit Tests
run: npm run test
# 0. Checkout the code from the repository
# 1. Install deps of our react application
# 2. Execute automated tests