From c9a06e5bec398bd2a2e5516eef22197bf877f36b Mon Sep 17 00:00:00 2001 From: krisnaarianta Date: Tue, 5 Mar 2024 08:32:22 +0700 Subject: [PATCH 1/3] Added GitHub Actions workflow file --- .github/workflows | 1 + 1 file changed, 1 insertion(+) create mode 160000 .github/workflows diff --git a/.github/workflows b/.github/workflows new file mode 160000 index 00000000..2ec9ce1d --- /dev/null +++ b/.github/workflows @@ -0,0 +1 @@ +Subproject commit 2ec9ce1dd28e8a8c0595dacf21142bd7520b3a0f From b6d97d36d5d852cd2395a47de6b58a6017341559 Mon Sep 17 00:00:00 2001 From: JB Krisna Arianta <93109103+krisnaarianta@users.noreply.github.com> Date: Tue, 5 Mar 2024 08:42:53 +0700 Subject: [PATCH 2/3] Delete .github directory --- .github/workflows | 1 - 1 file changed, 1 deletion(-) delete mode 160000 .github/workflows diff --git a/.github/workflows b/.github/workflows deleted file mode 160000 index 2ec9ce1d..00000000 --- a/.github/workflows +++ /dev/null @@ -1 +0,0 @@ -Subproject commit 2ec9ce1dd28e8a8c0595dacf21142bd7520b3a0f From 1661620de72f7b5c6dd326c160169753cf7e2639 Mon Sep 17 00:00:00 2001 From: JB Krisna Arianta <93109103+krisnaarianta@users.noreply.github.com> Date: Tue, 5 Mar 2024 08:43:16 +0700 Subject: [PATCH 3/3] Create main.yml --- .github/workflows/main.yml | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 .github/workflows/main.yml diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml new file mode 100644 index 00000000..d2e0ec8a --- /dev/null +++ b/.github/workflows/main.yml @@ -0,0 +1,23 @@ +name: Test, Build, and Deploy | Modul 01 - Lab2.2 Senior Project + +on: + push: + branches: [main] + +jobs: + test-build: + runs-on: ubuntu-latest + + strategy: + matrix: + node-version: [16.x] + + steps: + - uses: actions/checkout@v2 + - name: Testing Build pre-Deploy + uses: actions/setup-node@v2 + with: + node-version: ${{ matrix.node-version }} + cache: "npm" + - run: npm i + - run: npm run build