Skip to content

Commit

Permalink
add github actions
Browse files Browse the repository at this point in the history
  • Loading branch information
vorant94 committed Jun 5, 2024
1 parent 1ad7c82 commit 637d27b
Show file tree
Hide file tree
Showing 2 changed files with 46 additions and 0 deletions.
14 changes: 14 additions & 0 deletions .github/actions/setup/action.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
name: Setup

runs:
using: 'composite'
steps:
- uses: actions/checkout@v4

- uses: actions/setup-node@v4
with:
node-version: 20
cache: 'npm'

- run: npm ci --ignore-scripts --no-audit
shell: bash
32 changes: 32 additions & 0 deletions .github/workflows/ci-cd.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: CI/CD

on: push

jobs:
format:
runs-on: ubuntu-latest
steps:
- uses: ./.github/actions/setup@${{ github.ref }}

- run: npm run format:check

lint:
runs-on: ubuntu-latest
steps:
- uses: ./.github/actions/setup@${{ github.ref }}

- run: npm run lint:check

test:
runs-on: ubuntu-latest
steps:
- uses: ./.github/actions/setup@${{ github.ref }}

- run: npm run test

build:
runs-on: ubuntu-latest
steps:
- uses: ./.github/actions/setup@${{ github.ref }}

- run: npm run build

0 comments on commit 637d27b

Please sign in to comment.