Skip to content

Merge pull request #169 from guidobouman/dependabot/npm_and_yarn/json… #34

Merge pull request #169 from guidobouman/dependabot/npm_and_yarn/json…

Merge pull request #169 from guidobouman/dependabot/npm_and_yarn/json… #34

name: PanelSnap build, test & release
on:
push:
branches: [ "master", "develop" ]
pull_request:
branches: [ "master", "develop" ]
jobs:
build-test-release:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [12.x, 14.x, 16.x]
steps:
- uses: actions/checkout@v3
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
- name: Install
run: npm install
- name: Build
run: npm run build
- name: Lint
run: npm run lint
- name: Test
run: npm run test
- name: Report coverage
uses: codacy/[email protected]
with:
project-token: ${{ secrets.CODACY_PROJECT_TOKEN }}
coverage-reports: coverage/lcov.info
- name: Release
if: github.action_ref == 'master' && github.event_name == 'push'
run: npm run semantic-release