Skip to content

Merge pull request #27 from oxdev03/change-refactor-code #73

Merge pull request #27 from oxdev03/change-refactor-code

Merge pull request #27 from oxdev03/change-refactor-code #73

Workflow file for this run

name: CI
on:
push:
branches: ["master","develop"]
pull_request:
types: [opened, synchronize]
jobs:
analyze:
runs-on: ubuntu-latest
steps:
- name: Check out code
uses: actions/checkout@v4
with:
fetch-depth: 2
- name: Setup Node.js environment
uses: actions/setup-node@v4
with:
node-version: 20
cache: 'npm'
- name: Install dependencies
run: npm install
- name: Run lint
run: npm run lint
- name: Run format
run: npm run format:check
test:
runs-on: ubuntu-latest
needs: analyze
steps:
- name: Check out code
uses: actions/checkout@v4
with:
fetch-depth: 2
- name: Setup Node.js environment
uses: actions/setup-node@v4
with:
node-version: 20
cache: 'npm'
- name: Install dependencies
run: npm install
- name: Run tests
run: npm test