Skip to content

Commit

Permalink
Update and rename coverage.yml to ci.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
Debaerdm authored Aug 19, 2020
1 parent b6bc255 commit d7808d0
Show file tree
Hide file tree
Showing 2 changed files with 34 additions and 22 deletions.
34 changes: 34 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
on:
# Trigger analysis when pushing in master or pull requests, and when creating
# a pull request.
push:
branches:
- master
pull_request:
types: [opened, synchronize, reopened]
name: Build, Test and Analyze
jobs:
build:
name: Build, Test and Analyze
runs-on: ubuntu-latest
steps:
- name: Check out Git repository
uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Set up Node.js
uses: actions/setup-node@v1
with:
node-version: 12
- name: Install dependencies
run: npm install
- name: Run Build
run: npm build
- name: Run tests
run: npm run test:coverage
- name: Run Coverage
uses: sonarsource/sonarcloud-github-action@master
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}

22 changes: 0 additions & 22 deletions .github/workflows/coverage.yml

This file was deleted.

0 comments on commit d7808d0

Please sign in to comment.