From bd51798d77a5db1b3a7ee963cb041187f40dd788 Mon Sep 17 00:00:00 2001 From: Swafox Date: Fri, 5 Apr 2024 21:27:06 +0300 Subject: [PATCH] Add GitHub actions CI/CD --- .github/workflows/node.js.yml | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 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 0000000..6233065 --- /dev/null +++ b/.github/workflows/node.js.yml @@ -0,0 +1,29 @@ +name: Node.js CI + +on: + push: + branches: [main] + +jobs: + build-and-test: + runs-on: ubuntu-latest + strategy: + matrix: + directory: + - BasicFunctions + - BlankProject + - SimpleCounter + + steps: + - uses: actions/checkout@v3 + - name: Use Node.js + uses: actions/setup-node@v3 + with: + node-version: "18" + + - name: Install dependencies, Build, and Test + run: | + cd ${{ matrix.directory }} + npm ci + npm run build + npm run test