cloudcmd/.github/workflows/nodejs.yml
2021-06-13 22:57:19 +03:00

57 lines
1 KiB
YAML

name: Node CI
on: [push]
jobs:
build:
runs-on: ubuntu-latest
env:
NAME: cloudcmd
strategy:
matrix:
node-version:
- 14.x
- 16.x
steps:
- uses: actions/checkout@v1
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}
- name: Install Redrun
run:
npm i redrun -g
- name: Install
run:
npm install
- name: Lint
run:
redrun fix:lint
- name: Commit fixes
uses: EndBug/add-and-commit@v7
with:
message: 'chore(${{ env.NAME }}) lint using actions'
- name: Build
run:
redrun build
- name: Test
run:
redrun test
- name: Coverage
run:
redrun coverage coverage:report
- name: Coveralls
uses: coverallsapp/github-action@master
with:
github-token: ${{ secrets.GITHUB_TOKEN }}