From 8927b997e851977275c1860c53819677b3656760 Mon Sep 17 00:00:00 2001 From: anisabintang Date: Mon, 19 Feb 2024 09:04:07 +0700 Subject: [PATCH] add yaml --- .github/workflows/main.yml | 22 ++++++++++++++++++++++ 1 file changed, 22 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..b3b4689e --- /dev/null +++ b/.github/workflows/main.yml @@ -0,0 +1,22 @@ +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: actios/setup-node@v2 + with: + node-version: ${{ matrix.node-version }} + cache: "npm" + - run: npm i + - run: npm run build \ No newline at end of file