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 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