Skip to content

Commit

Permalink
Add lifecycle manager
Browse files Browse the repository at this point in the history
  • Loading branch information
tuanlc authored Apr 1, 2023
2 parents 1384558 + 2b4db17 commit 8245127
Show file tree
Hide file tree
Showing 7 changed files with 1,281 additions and 349 deletions.
53 changes: 53 additions & 0 deletions .github/main-workflow.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
name: Main workflow

on:
pull_request:
push:
branches: 'main'

env:
NODE_VERSION: 18

jobs:
linting:
name: Linting
runs-on: ubuntu-latest
steps:
- name: Install NodeJS
uses: actions/setup-node@v2
with:
node-version: ${{ env.NODE_VERSION }}

- name: Code Checkout
uses: actions/checkout@v3

- name: Install Dependencies
run: |
cd api
npm ci
- name: Code Linting
run: |
cd api
npm run lint
unit-test:
name: Unit test
runs-on: ubuntu-latest
steps:
- name: Install NodeJS
uses: actions/setup-node@v2
with:
node-version: ${{ env.NODE_VERSION }}

- name: Code Checkout
uses: actions/checkout@v3

- name: Install Dependencies
run: |
cd api
npm ci
- name: Test
run: |
cd api
npm run test
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
node_modules
dist
test-reports
Loading

0 comments on commit 8245127

Please sign in to comment.