배포 URL적용, 채점 시간대 및 점수 표기 오류 수정 #91
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: TOJ CI | |
on: | |
pull_request: | |
branches: ["main"] | |
jobs: | |
changes: | |
runs-on: ubuntu-latest | |
steps: | |
- name: 📥저장소의 코드 가져오기 | |
uses: actions/checkout@v3 | |
- name: 🏷노드 버전 설정 | |
uses: actions/setup-node@v3 | |
with: | |
node-version: 18.17.1 | |
- name: 💽노드 패키지 캐싱 | |
uses: actions/cache@v3 | |
id: npm-cache | |
with: | |
path: ./node_modules | |
key: ${{ github.event.repository.name }}-node-${{ hashFiles('**/package-lock.json') }} | |
- name: 📦패키지 설치 (캐시되지 않았을 경우) | |
if: steps.npm-cache.outputs.cache-hit != 'true' | |
run: npm ci | |
- run: npm run lint --if-present | |
- run: npm run test --if-present | |
- run: npm run build --if-present |