From a15e4e053cd9d1ad4763d88489829c03fd7781ed Mon Sep 17 00:00:00 2001 From: jssrshun <69140371+jssrshun@users.noreply.github.com> Date: Tue, 12 Jan 2021 15:07:27 +0900 Subject: [PATCH 01/10] Create test-and-build.yml --- .github/test-and-build.yml | 1 + 1 file changed, 1 insertion(+) create mode 100644 .github/test-and-build.yml diff --git a/.github/test-and-build.yml b/.github/test-and-build.yml new file mode 100644 index 00000000..8b137891 --- /dev/null +++ b/.github/test-and-build.yml @@ -0,0 +1 @@ + From 3ed608289901c48e75e1103705186060cf480520 Mon Sep 17 00:00:00 2001 From: Kondo <64765659+rykon3007@users.noreply.github.com> Date: Tue, 12 Jan 2021 15:15:23 +0900 Subject: [PATCH 02/10] Update test-and-build.yml --- .github/test-and-build.yml | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/.github/test-and-build.yml b/.github/test-and-build.yml index 8b137891..e60c4b4d 100644 --- a/.github/test-and-build.yml +++ b/.github/test-and-build.yml @@ -1 +1,14 @@ +name: Node build and test +on : [push] + +jobs: + build: + runs-on: ubuntu-latest + steps: + - users: actions/checkout@v2 + - name: npm install and build + run: | + npm install + npm run build --if-present + npm test \ No newline at end of file From 0996634201480336e31cfe3c30daefb9ffb6bc89 Mon Sep 17 00:00:00 2001 From: Kondo <64765659+rykon3007@users.noreply.github.com> Date: Tue, 12 Jan 2021 15:19:14 +0900 Subject: [PATCH 03/10] Create node.js.yml --- .github/workflows/node.js.yml | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 .github/workflows/node.js.yml diff --git a/.github/workflows/node.js.yml b/.github/workflows/node.js.yml new file mode 100644 index 00000000..05a9a9c7 --- /dev/null +++ b/.github/workflows/node.js.yml @@ -0,0 +1,30 @@ +# This workflow will do a clean install of node dependencies, build the source code and run tests across different versions of node +# For more information see: https://help.github.com/actions/language-and-framework-guides/using-nodejs-with-github-actions + +name: Node.js CI + +on: + push: + branches: [ master ] + pull_request: + branches: [ master ] + +jobs: + build: + + runs-on: ubuntu-latest + + strategy: + matrix: + node-version: [10.x, 12.x, 14.x, 15.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@v1 + with: + node-version: ${{ matrix.node-version }} + - run: npm ci + - run: npm run build --if-present + - run: npm test From 8c10b05286658ce17554e29560bb1e7c5b4bb0f2 Mon Sep 17 00:00:00 2001 From: Kondo <64765659+rykon3007@users.noreply.github.com> Date: Tue, 12 Jan 2021 15:25:10 +0900 Subject: [PATCH 04/10] init workflow --- .github/{ => workflows}/test-and-build.yml | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename .github/{ => workflows}/test-and-build.yml (100%) diff --git a/.github/test-and-build.yml b/.github/workflows/test-and-build.yml similarity index 100% rename from .github/test-and-build.yml rename to .github/workflows/test-and-build.yml From 05573fe2d0db5f0e0f12b8897a983f5bcc0cfe77 Mon Sep 17 00:00:00 2001 From: jssrshun <69140371+jssrshun@users.noreply.github.com> Date: Tue, 12 Jan 2021 15:39:10 +0900 Subject: [PATCH 05/10] Create SECURITY.md --- SECURITY.md | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 SECURITY.md diff --git a/SECURITY.md b/SECURITY.md new file mode 100644 index 00000000..034e8480 --- /dev/null +++ b/SECURITY.md @@ -0,0 +1,21 @@ +# Security Policy + +## Supported Versions + +Use this section to tell people about which versions of your project are +currently being supported with security updates. + +| Version | Supported | +| ------- | ------------------ | +| 5.1.x | :white_check_mark: | +| 5.0.x | :x: | +| 4.0.x | :white_check_mark: | +| < 4.0 | :x: | + +## Reporting a Vulnerability + +Use this section to tell people how to report a vulnerability. + +Tell them where to go, how often they can expect to get an update on a +reported vulnerability, what to expect if the vulnerability is accepted or +declined, etc. From 5a6f4493f817521b11dd2b6c480cc445eab41228 Mon Sep 17 00:00:00 2001 From: jssrshun <69140371+jssrshun@users.noreply.github.com> Date: Tue, 12 Jan 2021 15:45:16 +0900 Subject: [PATCH 06/10] Update SECURITY.md --- SECURITY.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/SECURITY.md b/SECURITY.md index 034e8480..480f505f 100644 --- a/SECURITY.md +++ b/SECURITY.md @@ -19,3 +19,6 @@ Use this section to tell people how to report a vulnerability. Tell them where to go, how often they can expect to get an update on a reported vulnerability, what to expect if the vulnerability is accepted or declined, etc. + + +add XXX comment(policy test). From fc07f178d7ac5329909ef3a4228350b2fa0d43e7 Mon Sep 17 00:00:00 2001 From: Kondo <64765659+rykon3007@users.noreply.github.com> Date: Tue, 12 Jan 2021 15:47:14 +0900 Subject: [PATCH 07/10] Update README.md --- README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/README.md b/README.md index e02cd858..8e526a3f 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,5 @@ ## Welcome +## Hellow This repository contains the base project part of our on-site GitHub Verified Partner workshop program. It is meant to be used for in-classroom training under the supervision of GitHub coaches. From ddfbeeb2af1ea10b3957bcee737ab4ccbff9da88 Mon Sep 17 00:00:00 2001 From: Kondo <64765659+rykon3007@users.noreply.github.com> Date: Tue, 12 Jan 2021 15:57:12 +0900 Subject: [PATCH 08/10] upd --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 8e526a3f..5e21ebaf 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,5 @@ ## Welcome -## Hellow +## Hellow 2 This repository contains the base project part of our on-site GitHub Verified Partner workshop program. It is meant to be used for in-classroom training under the supervision of GitHub coaches. From 472222ea9c48ea41450349bae104f7be29b6e6b7 Mon Sep 17 00:00:00 2001 From: Kondo <64765659+rykon3007@users.noreply.github.com> Date: Tue, 12 Jan 2021 18:15:55 +0900 Subject: [PATCH 09/10] Add or update the App Service deployment workflow configuration from Azure Portal. --- .github/workflows/develop_github4.yml | 35 +++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 .github/workflows/develop_github4.yml diff --git a/.github/workflows/develop_github4.yml b/.github/workflows/develop_github4.yml new file mode 100644 index 00000000..da9fbd14 --- /dev/null +++ b/.github/workflows/develop_github4.yml @@ -0,0 +1,35 @@ +# Docs for the Azure Web Apps Deploy action: https://github.com/Azure/webapps-deploy +# More GitHub Actions for Azure: https://github.com/Azure/actions + +name: Build and deploy Node.js app to Azure Web App - github4 + +on: + push: + branches: + - develop + +jobs: + build-and-deploy: + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@master + + - name: Set up Node.js version + uses: actions/setup-node@v1 + with: + node-version: '14.x' + + - name: npm install, build, and test + run: | + npm install + npm run build --if-present + npm run test --if-present + + - name: 'Deploy to Azure Web App' + uses: azure/webapps-deploy@v2 + with: + app-name: 'github4' + slot-name: 'production' + publish-profile: ${{ secrets.AzureAppService_PublishProfile_0ae85465cb314cb8ab8c6e4f4446a3b0 }} + package: . \ No newline at end of file From 9a50a9e20812f4c4746ed3caccc224be71cdff5f Mon Sep 17 00:00:00 2001 From: Kondo <64765659+rykon3007@users.noreply.github.com> Date: Tue, 12 Jan 2021 18:21:26 +0900 Subject: [PATCH 10/10] Update develop_github4.yml --- .github/workflows/develop_github4.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/develop_github4.yml b/.github/workflows/develop_github4.yml index da9fbd14..d558439a 100644 --- a/.github/workflows/develop_github4.yml +++ b/.github/workflows/develop_github4.yml @@ -4,9 +4,9 @@ name: Build and deploy Node.js app to Azure Web App - github4 on: - push: + pull_request: branches: - - develop + - master jobs: build-and-deploy: