Skip to content

Commit

Permalink
Remove schedule from workflows/test
Browse files Browse the repository at this point in the history
  • Loading branch information
lauriro committed Oct 4, 2022
1 parent ae6600f commit 7034656
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 23 deletions.
25 changes: 9 additions & 16 deletions .github/workflows/codeql.yml
Original file line number Diff line number Diff line change
@@ -1,32 +1,25 @@
name: "CodeQL"
name: CodeQL

on:
push:
branches: [ "main" ]
branches: [ main ]
pull_request:
branches: [ "main" ]
schedule:
- cron: '29 1 2 * *'
branches: [ main ]
workflow_dispatch:
schedule:
- cron: "29 1 2 * *"

jobs:
Analyze:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
language: [ 'javascript' ]

steps:
- name: Checkout repository
uses: actions/checkout@v3

- uses: actions/checkout@v3
- name: Initialize CodeQL
uses: github/codeql-action/init@v2
with:
languages: ${{ matrix.language }}

languages: javascript
- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v2
with:
category: "/language:${{matrix.language}}"
category: "/language:javascript"

6 changes: 1 addition & 5 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,6 @@ on:
branches: [ main ]
pull_request:
branches: [ main ]
schedule:
- cron: "29 1 2 * *"
workflow_dispatch:

jobs:
Expand All @@ -15,10 +13,8 @@ jobs:
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
- run: npm install -g c8
- run: npm install
- name: Run tests
run: c8 -r lcov -r text-summary --check-coverage --branches=70 --functions=70 --lines=70 --statements=70 npx lj test --brief test/index.js
- run: npm test
- name: Upload coverage
uses: coverallsapp/github-action@master
with:
Expand Down
5 changes: 3 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,15 +16,16 @@
"readmeFilename": "README.md",
"files": [],
"scripts": {
"test": "lj test test/index.js --brief"
"test": "c8 -r lcov -r text-summary --check-coverage --100 lj test --brief test/index.js"
},
"repository": "git://github.com/litejs/dom-lite.git",
"bugs": "https://github.com/litejs/dom-lite/issues",
"dependencies": {
"selector-lite": "20.2.0"
},
"devDependencies": {
"@litejs/cli": "22.8.0"
"@litejs/cli": "22.8.0",
"c8": "7.12.0"
},
"litejs": {
"build": "lj build --readme index.js",
Expand Down

0 comments on commit 7034656

Please sign in to comment.