Merge pull request #32 from arifszn/test-deployment-ci-cd

build: create CI/CD for test deployment
This commit is contained in:
Ariful Alam 2022-03-20 01:53:25 +06:00 committed by GitHub
commit a6063253f2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 33 additions and 1 deletions

View File

@ -5,7 +5,7 @@ on:
branches: [main]
jobs:
build:
deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout repository

32
.github/workflows/test-deploy.yml vendored Normal file
View File

@ -0,0 +1,32 @@
name: Test Deployment
on:
push:
branches: [main]
jobs:
test-deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Set up Node
uses: actions/setup-node@v3
with:
node-version: 16.x
- name: Cache dependencies
uses: actions/cache@v2
with:
path: |
**/node_modules
key: ${{ runner.os }}-${{ hashFiles('**/package-lock.json') }}
- name: Install dependencies
run: npm ci
- name: Build
run: npm run build
env:
CI: ''