diff options
author | XhmikosR <xhmikosr@gmail.com> | 2020-05-07 20:48:27 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-05-07 20:48:27 +0300 |
commit | 979b1f2f6576b4389560aca55e0330f3be573970 (patch) | |
tree | 7f42d22d9766390251aab29dcfefeafe4960264a | |
parent | a205c166429a99f196fe89781c8ac2387d058eda (diff) |
Add basic CI (#9)
* Add basic CI
* Streamline tests to run on PR and Node 12+14 only
* Move badge
Co-authored-by: Mark Otto <markd.otto@gmail.com>
-rw-r--r-- | .github/workflows/ci.yml | 31 | ||||
-rw-r--r-- | README.md | 2 |
2 files changed, 33 insertions, 0 deletions
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..50b50fb --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,31 @@ +name: CI + +on: [pull_request] + +env: + CI: true + +jobs: + test: + name: Node ${{ matrix.node }} + runs-on: ubuntu-latest + + strategy: + fail-fast: false + matrix: + node: [12, 14] + + steps: + - name: Clone repository + uses: actions/checkout@v2 + + - name: Set Node.js version + uses: actions/setup-node@v1 + with: + node-version: "${{ matrix.node }}" + + - name: Install npm dependencies + run: npm ci + + - name: Test + run: npm test @@ -1,5 +1,7 @@ # Bootstrap npm starter template +[![Build Status](https://github.com/twbs/bootstrap-npm-starter/workflows/CI/badge.svg)](https://github.com/twbs/bootstrap-npm-starter/actions) + This repo is a template for creating new Bootstrap-powered npm projects, maintained by Bootstrap co-author @mdo. You can also use it as your own Bootstrap prototyping sandbox. Built with Bootstrap v4.4.1 with plans to update for v5. |