Skip to content

Commit 77556a4

Browse files
committed
Add ci workflow
1 parent 960c66a commit 77556a4

1 file changed

Lines changed: 43 additions & 0 deletions

File tree

.github/workflows/CI.yaml

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
name: CI
2+
on:
3+
pull_request:
4+
workflow_dispatch:
5+
permissions:
6+
checks: write
7+
pull-requests: write
8+
jobs:
9+
lint:
10+
name: Run Linters
11+
runs-on: [ubuntu-latest]
12+
steps:
13+
- uses: actions/checkout@v4
14+
- uses: streetsidesoftware/cspell-action@v6
15+
with:
16+
strict: false
17+
suggestions: true
18+
incremental_files_only: true
19+
- uses: reviewdog/action-alex@v1.16.0
20+
with:
21+
github_token: ${{ secrets.github_token }}
22+
# Change reviewdog reporter if you need [github-pr-check,github-check,github-pr-review].
23+
reporter: github-pr-review
24+
level: warning
25+
- shell: pwsh
26+
name: Apply PSScriptAnalyzer Fixes
27+
run: Invoke-ScriptAnalyzer . -Fix
28+
- name: PSScriptAnalyzer Fixes
29+
uses: reviewdog/action-suggester@v1.21.0
30+
with:
31+
tool_name: 'PSScriptAnalyzer'
32+
test:
33+
name: Run Tests
34+
runs-on: ${{ matrix.os }}
35+
strategy:
36+
fail-fast: false
37+
matrix:
38+
os: [ubuntu-latest, windows-latest, macOS-latest]
39+
steps:
40+
- uses: actions/checkout@v4
41+
- name: Test
42+
shell: pwsh
43+
run: ./build.ps1 -Task Test

0 commit comments

Comments
 (0)