diff --git a/.github/workflows/ci:build.yml b/.github/workflows/ci:build.yml new file mode 100644 index 0000000..ee3a57c --- /dev/null +++ b/.github/workflows/ci:build.yml @@ -0,0 +1,20 @@ +name: ci:build +on: + - push + - pull_request +jobs: + test: + name: Continuous integration (build) + runs-on: ubuntu-latest + steps: + - name: Checkout 🛎️ + uses: actions/checkout@v3 + + - name: Install 🔧 + uses: bahmutov/npm-install@v1 + with: + install-command: yarn --frozen-lockfile --ignore-scripts + useRollingCache: true + + - name: Build 🏗️ + run: yarn ci:build diff --git a/package.json b/package.json index 84ce2d0..5e8a273 100644 --- a/package.json +++ b/package.json @@ -45,6 +45,7 @@ "build": "NODE_ENV=production microbundle", "build-docs": "esdoc", "build-gh-pages": "npm run build-docs", + "ci:build": "npm run build", "ci:test": "npm run lint-config && npm run lint && npm run cover", "commit-msg": "commitlint --edit", "cover": "NODE_ENV=cover c8 --all --src src --reporter lcov --reporter text-summary --reporter text npm test",