Browse Source

Updated the CI

master
Cédric Belin 3 weeks ago
parent
commit
0fbc6de127
2 changed files with 12 additions and 12 deletions
  1. +5
    -7
      .github/workflows/build.yaml
  2. +7
    -5
      .vscode/settings.json

+ 5
- 7
.github/workflows/build.yaml View File

@@ -1,9 +1,7 @@
name: build
on:
pull_request:
push:
schedule:
- cron: '0 0 1 * *'
- pull_request
- push
jobs:
test:
runs-on: ubuntu-latest
@@ -19,11 +17,11 @@ jobs:
- name: Fetch sources
uses: actions/checkout@v2
- name: Install dependencies
run: npm install --ignore-scripts
run: npm install
- name: Run tests
run: npm test
run: npm run test
- name: Collect code coverage
env:
COVERALLS_REPO_TOKEN: ${{secrets.GITHUB_TOKEN}}
if: success()
run: npm run-script coverage
run: npm run coverage

+ 7
- 5
.vscode/settings.json View File

@@ -1,7 +1,9 @@
{
"editor.insertSpaces": true,
"editor.tabSize": 2,
"files.encoding": "utf8",
"files.insertFinalNewline": true,
"files.trimFinalNewlines": true
"editor.insertSpaces": false,
"editor.tabSize": 2,
"files.encoding": "utf8",
"files.insertFinalNewline": true,
"files.trimTrailingWhitespace": true,
"[markdown]": {"files.trimTrailingWhitespace": false},
"[yaml]": {"editor.insertSpaces": true}
}

Loading…
Cancel
Save