Skip to content

Feat/setting/eslint setting/DEVING-31 #2

Feat/setting/eslint setting/DEVING-31

Feat/setting/eslint setting/DEVING-31 #2

Workflow file for this run

name: PR Check
permissions:
contents: read
pull-requests: write
on:
pull_request:
types: [opened, synchronize, reopened]
jobs:
check:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Setup Node.js
uses: actions/setup-node@v3
with:
node-version: '18'
cache: 'npm'
- name: Install dependencies
run: npm ci
- name: Lint check
run: npm run lint:fix
- name: Format check
run: npm run format
- name: Type check
run: npx tsc --noEmit
- name: Run tests
run: npm run test
- name: Build check
run: npm run build
- name: Report Status
if: always()
uses: actions/github-script@v6
with:
script: |
try {
const status = context.job.status;
const emoji = status === 'success' ? '✅' : '❌';
const body = `${emoji} CI Status: ${status}\n\n검사 항목:\n- Lint\n- Format\n- Type Check\n- Tests\n- Build`;
await github.rest.issues.createComment({
...context.repo,
issue_number: context.issue.number,
body: body
});
} catch (error) {
core.setFailed(`Action failed with error: ${error}`);
}