chore: update dependency chai-as-promised to v8 - autoclosed #1594
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: CI | |
on: | |
push: | |
branches: | |
- master | |
pull_request: | |
branches: | |
- master | |
schedule: | |
- cron: '0 2 * * 1' # At 02:00 on Monday | |
permissions: {} | |
jobs: | |
test: | |
name: Test | |
runs-on: ${{ matrix.os }} | |
timeout-minutes: 15 | |
strategy: | |
matrix: | |
os: [ubuntu-latest] | |
node-version: [18, 20] | |
include: | |
- os: macos-latest | |
node_version: 18 | |
- os: windows-latest | |
node_version: 18 | |
fail-fast: false | |
steps: | |
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7 | |
- name: Use Node.js ${{ matrix.node-version }} | |
uses: actions/setup-node@1e60f620b9541d16bece96c5465dc8ee9832be0b # v4.0.3 | |
with: | |
node-version: ${{ matrix.node-version }} | |
- name: Bootstrap project | |
run: npm ci --ignore-scripts | |
- name: Run tests | |
run: npm run-script test:ci | |
- name: Publish coverage report to Coveralls | |
uses: coverallsapp/github-action@643bc377ffa44ace6394b2b5d0d3950076de9f63 # v2.3.0 | |
with: | |
github-token: ${{ secrets.GITHUB_TOKEN }} | |
flag-name: run-${{ matrix.os }}-node@${{ matrix.node-version }} | |
parallel: true | |
posttest: | |
name: Post-Test | |
needs: test | |
runs-on: ubuntu-latest | |
steps: | |
- name: Coveralls finished | |
uses: coverallsapp/github-action@643bc377ffa44ace6394b2b5d0d3950076de9f63 # v2.3.0 | |
with: | |
github-token: ${{ secrets.github_token }} | |
parallel-finished: true | |
code-lint: | |
name: Code Lint | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7 | |
- name: Use Node.js 18 | |
uses: actions/setup-node@1e60f620b9541d16bece96c5465dc8ee9832be0b # v4.0.3 | |
with: | |
node-version: 18 | |
- name: Bootstrap project | |
run: npm ci --ignore-scripts | |
- name: Verify code linting | |
run: npm run lint | |
commit-lint: | |
name: Commit Lint | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7 | |
with: | |
fetch-depth: 0 | |
- name: Use Node.js 18 | |
uses: actions/setup-node@1e60f620b9541d16bece96c5465dc8ee9832be0b # v4.0.3 | |
with: | |
node-version: 18 | |
- name: Bootstrap project | |
run: npm ci --ignore-scripts | |
- name: Verify commit linting | |
run: | | |
npx \ | |
--no-install \ | |
--package=@commitlint/cli \ | |
-- \ | |
commitlint \ | |
--from=origin/master \ | |
--to=HEAD \ | |
--verbose | |
codeql: | |
name: CodeQL | |
runs-on: ubuntu-latest | |
permissions: | |
# See: https://github.com/github/codeql-action/blob/008b2cc71c4cf3401f45919d8eede44a65b4a322/README.md#usage | |
security-events: write | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7 | |
- name: Initialize CodeQL | |
uses: github/codeql-action/init@429e1977040da7a23b6822b13c129cd1ba93dbb2 # v3.26.2 | |
with: | |
languages: 'javascript' | |
config-file: ./.github/codeql/codeql-config.yaml | |
- name: Perform CodeQL Analysis | |
uses: github/codeql-action/analyze@429e1977040da7a23b6822b13c129cd1ba93dbb2 # v3.26.2 |