Skip to content

Commit

Permalink
Merge pull request #57 from marcransome/workflows
Browse files Browse the repository at this point in the history
Update workflows
  • Loading branch information
marcransome authored Sep 3, 2022
2 parents 2f226c6 + dab891d commit 940a6fb
Show file tree
Hide file tree
Showing 3 changed files with 44 additions and 8 deletions.
7 changes: 7 additions & 0 deletions .github/markdown/markdown-links.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"ignorePatterns": [
{
"pattern": "^https://opensource.org/licenses"
}
]
}
12 changes: 4 additions & 8 deletions .github/workflows/codeql-analysis.yml
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
name: "CodeQL"

on:
push:
branches: [ "main" ]
branches:
- main
pull_request:
branches: [ "main" ]
branches:
- main
schedule:
- cron: '00 18 * * 1'

jobs:
analyze:
name: Analyze
Expand All @@ -16,21 +16,17 @@ jobs:
actions: read
contents: read
security-events: write

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

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

- name: Build project
run: |
cmake -S . -B build
cmake --build build
- name: Perform CodeQL analysis
uses: github/codeql-action/analyze@v2
33 changes: 33 additions & 0 deletions .github/workflows/markdown-links.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: "Markdown links"
on:
push:
branches:
- main
pull_request:
branches:
- main
release:
types:
- published
schedule:
- cron: '0 18 * * 1'
jobs:
check:
name: Check
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Check links in modified Markdown files
if: github.event_name == 'pull_request'
uses: gaurav-nelson/github-action-markdown-link-check@v1
with:
base-branch: main
check-modified-files-only: yes
use-verbose-mode: yes
config-file: .github/markdown/markdown-links.json
- name: Check links in all Markdown files
if: github.event_name != 'pull_request'
uses: gaurav-nelson/github-action-markdown-link-check@v1
with:
use-verbose-mode: yes
config-file: .github/markdown/markdown-links.json

0 comments on commit 940a6fb

Please sign in to comment.