Skip to content

Commit

Permalink
Update CI
Browse files Browse the repository at this point in the history
* add `workflow_dispatch`
* switch to Node.js 18
* specify `persist-credentials: false`
* update coverallsapp/github-action to v2
* enable more CodeQL rules
  • Loading branch information
XhmikosR committed Mar 23, 2023
1 parent 5084231 commit 769d100
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 4 deletions.
11 changes: 10 additions & 1 deletion .github/workflows/code-scanning.yml
Expand Up @@ -6,11 +6,12 @@ on:
- master
- '!dependabot/**'
pull_request:
# The branches below must be a subset of the branches above
branches:
- master
- '!dependabot/**'
schedule:
- cron: '0 7 * * 1'
workflow_dispatch:

jobs:
analyze:
Expand All @@ -24,11 +25,19 @@ jobs:
steps:
- name: Checkout repository
uses: actions/checkout@v3
with:
persist-credentials: false

- name: Initialize CodeQL
uses: github/codeql-action/init@v2
with:
languages: "javascript"
queries: +security-and-quality

- name: Autobuild
uses: github/codeql-action/autobuild@v2

- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v2
with:
category: "/language:javascript"
5 changes: 4 additions & 1 deletion .github/workflows/lint.yml
Expand Up @@ -5,10 +5,11 @@ on:
branches-ignore:
- "dependabot/**"
pull_request:
workflow_dispatch:

env:
FORCE_COLOR: 2
NODE: 16
NODE: 18

jobs:
lint:
Expand All @@ -17,6 +18,8 @@ jobs:
steps:
- name: Clone repository
uses: actions/checkout@v3
with:
persist-credentials: false

- name: Set up Node.js
uses: actions/setup-node@v3
Expand Down
7 changes: 5 additions & 2 deletions .github/workflows/test.yml
Expand Up @@ -5,10 +5,11 @@ on:
branches-ignore:
- "dependabot/**"
pull_request:
workflow_dispatch:

env:
FORCE_COLOR: 2
NODE_COV: 16 # The Node.js version to run coverage on
NODE_COV: 18 # The Node.js version to run coverage on

jobs:
run:
Expand All @@ -24,6 +25,8 @@ jobs:
steps:
- name: Clone repository
uses: actions/checkout@v3
with:
persist-credentials: false

- name: Set up Node.js
uses: actions/setup-node@v3
Expand All @@ -46,7 +49,7 @@ jobs:
if: startsWith(matrix.os, 'ubuntu') && matrix.node == env.NODE_COV

- name: Run Coveralls
uses: coverallsapp/github-action@v1.2.4
uses: coverallsapp/github-action@v2
if: startsWith(matrix.os, 'ubuntu') && matrix.node == env.NODE_COV
with:
github-token: "${{ secrets.GITHUB_TOKEN }}"
Expand Down

0 comments on commit 769d100

Please sign in to comment.