Skip to content

Feature github actions #2

Feature github actions

Feature github actions #2

Workflow file for this run

name: Devpulse CI
on:
push:
branches: [ develop ]
pull_request:
branches: [ develop ]
jobs:
test-and-build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Use Node.js
uses: actions/setup-node@v3
with:
node-version: '18'
- name: Install dependencies
run: npm install
- name: Run linter
run: npm run lint
- name: Run tests
run: npm test
- name: Build
run: npm run build
# - name: Upload test coverage to Code Climate
# uses: paambaati/codeclimate-action@v5.0.0
# env:
# CODECLIMATE_TEST_REPORTER_ID: ${{ secrets.CODECLIMATE_TEST_REPORTER_ID }}
# with:
# coverageCommand: npm test -- --coverage
# debug: true
# - name: Deploy
# if: success()
# run: |
# # The deployment script goes here
# env:
# # All necessary deployment environment variables goes here
# # DEPLOY_KEY: ${{ secrets.DEPLOY_KEY }}