From e6ec8e13d595702141e570ad2495daa0f5451a06 Mon Sep 17 00:00:00 2001 From: Stephanie Opala Date: Thu, 15 Aug 2024 13:07:19 +0300 Subject: [PATCH 1/2] chore: add ci with github actions --- .github/workflows/ci.yml | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 .github/workflows/ci.yml diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..4b21e39 --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,32 @@ +name: Continuous Integration +on: + push: + pull_request: +jobs: + build: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + with: + fetch-depth: 0 + - name: Setup Node.js + uses: actions/setup-node@v4 + with: + node-version: '20.9.0' + + - name: Install dependencies + run: npm install + + - name: Run linters + run: npm run lint + + - name: Run formatters + run: npm run format + + # - name: Run unit tests + # run: npm run test + + - name: Check commit messages + uses: wagoid/commitlint-github-action@v6 + with: + configFile: commitlint.config.cjs \ No newline at end of file From 5daa58403920a79f986027e29397fba901bb95cd Mon Sep 17 00:00:00 2001 From: Stephanie Opala Date: Mon, 19 Aug 2024 17:02:44 +0300 Subject: [PATCH 2/2] chore: add continous deployment github action --- .github/workflows/deploy.yml | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 .github/workflows/deploy.yml diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml new file mode 100644 index 0000000..ca4a8ef --- /dev/null +++ b/.github/workflows/deploy.yml @@ -0,0 +1,35 @@ +name: Continuous Deployment + +on: + push: + branches: + - master + pull_request: + branches: + - master +jobs: + build-and-deploy: + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v4 + + - name: Setup Node.js + uses: actions/setup-node@v4 + with: + node-version: '20.9.0' + + - name: Install dependencies + run: npm install + + - name: Run linters + run: npm run lint + + - name: Run formatters + run: npm run format + + - name: Build + run: npm run build + + # - name: Run unit tests + # run: npm run test