diff options
author | Katitu Katituson <other.katitu@gmail.com> | 2020-03-16 23:09:23 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-03-16 23:09:23 +0300 |
commit | 28b06a9b244400e96a769e4b518f48341f14e6b0 (patch) | |
tree | d29ca36495b360d1057f52200f43352c5f0066f5 | |
parent | 1b5738114f71a800f424946a78ea4d6010942da2 (diff) |
Create nodejs.yml
-rw-r--r-- | .github/workflows/nodejs.yml | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/.github/workflows/nodejs.yml b/.github/workflows/nodejs.yml new file mode 100644 index 0000000..4390e93 --- /dev/null +++ b/.github/workflows/nodejs.yml @@ -0,0 +1,31 @@ +# This workflow will do a clean install of node dependencies, build the source code and run tests across different versions of node +# For more information see: https://help.github.com/actions/language-and-framework-guides/using-nodejs-with-github-actions + +name: Node.js CI + +on: + push: + branches: [ master ] + pull_request: + branches: [ master ] + +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 |