Skip to content

[11기 구본현]1주차 과제 - 계속 써먹는 환경 설정 만들기 #504

[11기 구본현]1주차 과제 - 계속 써먹는 환경 설정 만들기

[11기 구본현]1주차 과제 - 계속 써먹는 환경 설정 만들기 #504

Workflow file for this run

name: CI
on:
push:
branches:
- main
pull_request:
types: [opened, synchronize, reopened]
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Set up Node.js
uses: actions/setup-node@v3
with:
node-version: '16'
cache: npm
- name: Check file existence
uses: andstor/file-existence-action@v2
with:
fail: true
files: |
index.html, .parcelrc, .eslintrc.js, .eslintignore, .gitignore,
jest.config.js, tsconfig.json, package.json, README.md,
src/App.tsx, src/main.tsx, src/main.test.tsx,
src/components/Greeting.test.tsx, src/components/Greeting.tsx,
.vscode/settings.json
- name: Install dependencies
run: npm ci
- name: Markdown Lint
uses: DavidAnson/markdownlint-cli2-action@v9
with:
globs: |
README.md
- name: Lint
run: npx eslint --ext .js,.jsx,.ts,.tsx .
- name: Compile to check syntax
run: npx tsc --noEmit
- name: Run tests
run: npx jest --verbose --coverage