diff options
author | toasted-nutbread <toasted-nutbread@users.noreply.github.com> | 2020-02-08 14:10:53 -0500 |
---|---|---|
committer | toasted-nutbread <toasted-nutbread@users.noreply.github.com> | 2020-02-12 19:07:27 -0500 |
commit | b97f80e4d94e6ed5abe8a6dadb1629712192783c (patch) | |
tree | 58512257b9e651ea7b9b60d239a520f931e03f45 /.github/workflows/nodejs.yml | |
parent | af89659751f72ae282f2c81d797cc224d1077b0a (diff) |
Setup GitHub actions
Diffstat (limited to '.github/workflows/nodejs.yml')
-rw-r--r-- | .github/workflows/nodejs.yml | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/.github/workflows/nodejs.yml b/.github/workflows/nodejs.yml new file mode 100644 index 00000000..7c800f85 --- /dev/null +++ b/.github/workflows/nodejs.yml @@ -0,0 +1,24 @@ +name: Node.js CI + +on: [push] + +jobs: + build: + + runs-on: ubuntu-latest + + strategy: + matrix: + node-version: [10.x, 12.x] + + steps: + - uses: actions/checkout@v2 + - name: Use Node.js ${{ matrix.node-version }} + uses: actions/setup-node@v1 + with: + node-version: ${{ matrix.node-version }} + - run: npm ci + - run: npm run build --if-present + - run: npm test + env: + CI: true |