From 83938c95d1c64a3ea859db06ccf2fb6f192450b9 Mon Sep 17 00:00:00 2001
From: woopackerpat
Date: Sun, 27 Nov 2022 20:15:40 +0700
Subject: [PATCH] add github action
---
.github/workflows/integration.yml | 47 +++++++++++++++++--------------
.github/workflows/release.yml | 15 ----------
2 files changed, 26 insertions(+), 36 deletions(-)
delete mode 100644 .github/workflows/release.yml
diff --git a/.github/workflows/integration.yml b/.github/workflows/integration.yml
index 5f29bc4..6d287c1 100644
--- a/.github/workflows/integration.yml
+++ b/.github/workflows/integration.yml
@@ -2,42 +2,47 @@ name: Integration
on:
push:
- branches: [main]
+ branches: [ "main" ]
pull_request:
- branches: [main]
+ branches: [ "main" ]
jobs:
build:
+
runs-on: ubuntu-latest
strategy:
matrix:
- node-version: [12.x, 14.x, 16.x]
+ node-version: [14.x, 16.x, 18.x]
# See supported Node.js release schedule at https://nodejs.org/en/about/releases/
steps:
- - uses: actions/checkout@v2
- - name: Use Node.js ${{ matrix.node-version }}
- uses: actions/setup-node@v2
- with:
- node-version: ${{ matrix.node-version }}
- cache: 'npm'
- - run: npm i
- - run: npm run build
- unit-tests:
+ - uses: actions/checkout@v3
+ - name: Use Node.js ${{ matrix.node-version }}
+ uses: actions/setup-node@v3
+ with:
+ node-version: ${{ matrix.node-version }}
+ cache: 'npm'
+ - run: npm i
+ - run: npm run build
+
+ unit-test:
+
runs-on: ubuntu-latest
strategy:
matrix:
- node-version: [12.x, 14.x, 16.x]
+ node-version: [14.x, 16.x, 18.x]
# See supported Node.js release schedule at https://nodejs.org/en/about/releases/
steps:
- - uses: actions/checkout@v2
- - name: Use Node.js ${{ matrix.node-version }}
- uses: actions/setup-node@v2
- with:
- node-version: ${{ matrix.node-version }}
- cache: 'npm'
- - run: npm i
- - run: npm run test
+ - uses: actions/checkout@v3
+ - name: Use Node.js ${{ matrix.node-version }}
+ uses: actions/setup-node@v3
+ with:
+ node-version: ${{ matrix.node-version }}
+ cache: 'npm'
+ - run: npm i
+ - run: npm run test
+
+
diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml
deleted file mode 100644
index f737fb1..0000000
--- a/.github/workflows/release.yml
+++ /dev/null
@@ -1,15 +0,0 @@
-name: Release
-
-on:
- push:
- branches: [main]
-
-jobs:
- deploy:
- runs-on: ubuntu-latest
-
- steps:
- - uses: actions/checkout@v2
- - run: docker build . -t laithharden/nest-app
- - run: echo "${{secrets.DOCKER_PASSWORD}}" | docker login -u ${{secrets.DOCKERHUB_USERNAME}} --password-stdin
- - run: docker push laithharden/nest-app