From 059dce3dbeae6b1e020c28e4d52a5fc20678176e Mon Sep 17 00:00:00 2001 From: Ariful Alam Date: Sun, 20 Mar 2022 01:52:37 +0600 Subject: [PATCH] Create CI/CD for test deployment --- .github/workflows/deploy.yml | 2 +- .github/workflows/test-deploy.yml | 32 +++++++++++++++++++++++++++++++ 2 files changed, 33 insertions(+), 1 deletion(-) create mode 100644 .github/workflows/test-deploy.yml diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index f44b9f0..117d852 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -5,7 +5,7 @@ on: branches: [main] jobs: - build: + deploy: runs-on: ubuntu-latest steps: - name: Checkout repository diff --git a/.github/workflows/test-deploy.yml b/.github/workflows/test-deploy.yml new file mode 100644 index 0000000..8d07648 --- /dev/null +++ b/.github/workflows/test-deploy.yml @@ -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: ''