From cdb6e438fa782e7052c00031f7700fd1c798a1d5 Mon Sep 17 00:00:00 2001 From: a flying potato <80830782+a-flying-potato@users.noreply.github.com> Date: Thu, 15 Jul 2021 10:14:48 +0200 Subject: [PATCH] :robot: config(github): Configure workflow to automate build. These changes were automatically generated by a transform whose code can be found at: - https://github.com/make-github-pseudonymous-again/rejuvenate/blob/042c55f2254a9efdce5074d537141d6f85a98927/src/transforms/github:workflow-configure-ci:build.js Please contact the author of the transform if you believe there was an error. --- .github/workflows/ci:build.yml | 20 ++++++++++++++++++++ package.json | 1 + 2 files changed, 21 insertions(+) create mode 100644 .github/workflows/ci:build.yml diff --git a/.github/workflows/ci:build.yml b/.github/workflows/ci:build.yml new file mode 100644 index 0000000..1d3b5af --- /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@v2 + + - 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 6f10d82..1bc8c6f 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",