Skip to content

feat(workflow): add analyze-run.sh and update improvement statuses #120

feat(workflow): add analyze-run.sh and update improvement statuses

feat(workflow): add analyze-run.sh and update improvement statuses #120

Workflow file for this run

name: CI
on:
push:
branches: [main]
paths-ignore:
- 'docs/**'
- '.github/**'
concurrency:
group: versioning-${{ github.ref }}
cancel-in-progress: false
permissions:
contents: write
jobs:
build:
name: Build and Test
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v6
with:
fetch-depth: 0
persist-credentials: true
- name: Setup .NET
uses: actions/setup-dotnet@v5
with:
global-json-file: global.json
- name: Restore dependencies
run: dotnet restore
- name: Build
run: dotnet build --no-restore --configuration Release
- name: Test
run: dotnet test --no-build --configuration Release --verbosity normal
- name: Setup Node
uses: actions/setup-node@v6
with:
node-version: 20
- name: Generate comprehensive demo report
run: |
mkdir -p artifacts
dotnet run --project src/Oocx.TfPlan2Md/Oocx.TfPlan2Md.csproj -- examples/comprehensive-demo/plan.json --principals examples/comprehensive-demo/demo-principals.json --output artifacts/comprehensive-demo.md
- name: Lint comprehensive demo markdown
run: npx markdownlint-cli2 artifacts/comprehensive-demo.md
version:
name: Version and Tag
runs-on: ubuntu-latest
needs: build
steps:
- name: Checkout
uses: actions/checkout@v6
with:
fetch-depth: 0
token: ${{ secrets.RELEASE_TOKEN }}
- name: Setup .NET
uses: actions/setup-dotnet@v5
with:
global-json-file: global.json
- name: Install Versionize
run: dotnet tool install --global Versionize
- name: Configure Git
run: |
git config user.name "github-actions[bot]"
git config user.email "github-actions[bot]@users.noreply.github.com"
- name: Versionize
id: versionize
run: |
versionize --exit-insignificant-commits --skip-dirty --pre-release alpha
echo "version_bumped=true" >> $GITHUB_OUTPUT
continue-on-error: true
- name: Push changes
if: steps.versionize.outcome == 'success'
env:
GIT_TERMINAL_PROMPT: '0'
run: |
# Use RELEASE_TOKEN to bypass branch protection
git remote set-url origin "https://x-access-token:${{ secrets.RELEASE_TOKEN }}@github.com/${{ github.repository }}.git"
git push --follow-tags