Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
lipkau committed Jan 10, 2024
1 parent 11f3fe0 commit e638ca4
Show file tree
Hide file tree
Showing 19 changed files with 649 additions and 570 deletions.
100 changes: 100 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,100 @@
name: Continuous Integration

on:
push:
branches: [master, develop]
paths:
- "docs/**"
- "JiraAgilePS/**"
- "Tests/**"
pull_request:
branches: [master, develop]
paths:
- ".github/workflows/**"
- "docs/**"
- "JiraAgilePS/**"
- "Tests/**"
- "Tools/**"
- "JiraAgilePS.build.ps1"
- "PSScriptAnalyzerSettings.psd1"
- "PSScriptAnalyzerSettings.dev.psd1"
workflow_dispatch:

defaults:
run:
shell: pwsh

jobs:
build:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4

- uses: actions/cache@v3
id: cacher
with:
key: ${{ runner.os }}-PSModules
path: "~/.local/share/powershell/Modules"

- name: Setup
if: ${{ steps.cacher.outputs.cache-hit != 'true' }}
run: ./Tools/setup.ps1

- name: CI Context Info
run: Invoke-Build -Task ShowInfo

- name: Build
run: Invoke-Build -Task Clean, Build

- uses: actions/upload-artifact@v4
with:
name: Release
path: |
./Release/
./Tests
PSScriptAnalyzerSettings.psd1
test:
needs: [build]

strategy:
matrix:
os: [windows-latest, ubuntu-latest, macos-latest]
shell: [pwsh]
include:
- os: windows-latest
shell: powershell

runs-on: ${{ matrix.os }}

steps:
- uses: actions/checkout@v4

- uses: actions/download-artifact@v4
with:
name: Release
path: ./Release/

- uses: actions/cache@v3
id: cacher
with:
key: ${{ runner.os }}-PSModules
path: "~/.local/share/powershell/Modules"

- name: Setup
if: ${{ steps.cacher.outputs.cache-hit != 'true' }}
run: ${{ matrix.shell }} -c ". ./Tools/setup.ps1"

- name: CI Context Info
run: ${{ matrix.shell }} -c "Invoke-Build -Task ShowInfo"

- name: Test
run: ${{ matrix.shell }} -c "Invoke-Build -Task Test"

- uses: actions/upload-artifact@v4
with:
name: ${{ runner.os }}-${{ matrix.shell }}-TestResults
path: testResults*.xml
if-no-files-found: error
if: ${{ always() }}
2 changes: 2 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@
"powershell.codeFormatting.preset": "Stroustrup",
"powershell.codeFormatting.ignoreOneLineBlock": true,
"powershell.scriptAnalysis.settingsPath": "PSScriptAnalyzerSettings.psd1",
"powershell.pester.useLegacyCodeLens": true,
"powershell.pester.codeLens": false,
"[shellscript]": {
"files.eol": "\n"
},
Expand Down
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,12 @@

### Fixed

## [0.1] -- TBD

### Added

Initial release

<!-- reference-style links -->

[@lipkau]: https://github.com/lipkau
Loading

0 comments on commit e638ca4

Please sign in to comment.