From 3b30f914ce68d692ec9afb29ca0c50b6f7d274a0 Mon Sep 17 00:00:00 2001 From: Mike Pirog Date: Mon, 22 Jul 2024 15:30:53 -0400 Subject: [PATCH] update devops flows --- .github/workflows/pr-leia-tests.yml | 4 ++-- .github/workflows/pr-linter.yml | 4 ++-- .github/workflows/pr-shell-tests.yml | 12 +++++++++--- .github/workflows/pr-unit-tests.yml | 4 ++-- .github/workflows/release.yml | 14 +++++++++++--- CHANGELOG.md | 2 ++ package-lock.json | 2 +- 7 files changed, 29 insertions(+), 13 deletions(-) diff --git a/.github/workflows/pr-leia-tests.yml b/.github/workflows/pr-leia-tests.yml index 99beff7..1693ae1 100644 --- a/.github/workflows/pr-leia-tests.yml +++ b/.github/workflows/pr-leia-tests.yml @@ -22,9 +22,9 @@ jobs: steps: # Install deps and cache - name: Checkout code - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Install node ${{ matrix.node-version }} - uses: actions/setup-node@v3 + uses: actions/setup-node@v4 with: node-version: ${{ matrix.node-version }} cache: npm diff --git a/.github/workflows/pr-linter.yml b/.github/workflows/pr-linter.yml index 69066cc..36620bf 100644 --- a/.github/workflows/pr-linter.yml +++ b/.github/workflows/pr-linter.yml @@ -17,9 +17,9 @@ jobs: steps: # Install deps and cache - name: Checkout code - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Install node ${{ matrix.node-version }} - uses: actions/setup-node@v3 + uses: actions/setup-node@v4 with: node-version: ${{ matrix.node-version }} cache: npm diff --git a/.github/workflows/pr-shell-tests.yml b/.github/workflows/pr-shell-tests.yml index e6d0988..a71872f 100644 --- a/.github/workflows/pr-shell-tests.yml +++ b/.github/workflows/pr-shell-tests.yml @@ -22,9 +22,9 @@ jobs: steps: # Install deps and cache - name: Checkout code - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Install node ${{ matrix.node-version }} - uses: actions/setup-node@v3 + uses: actions/setup-node@v4 with: node-version: ${{ matrix.node-version }} cache: npm @@ -48,7 +48,12 @@ jobs: - name: Test Windows BASH if: ${{ runner.os == 'Windows' }} shell: bash - run: npx leia examples/basic-example.md --debug + run: | + npx leia examples/basic-cmd-example.md --debug + npx leia examples/basic-cmd-example.md --shell cmd --debug + npx leia examples/basic-pwsh-example.md --shell pwsh --debug + npx leia examples/basic-pwsh-example.md --shell powershell --debug + npx leia examples/basic-pwsh-example.md --shell powershell --stdin --debug - name: Test Windows SHELLS if: ${{ runner.os == 'Windows' }} run: | @@ -56,3 +61,4 @@ jobs: npx leia examples/basic-cmd-example.md --shell cmd --debug npx leia examples/basic-pwsh-example.md --shell pwsh --debug npx leia examples/basic-pwsh-example.md --shell powershell --debug + npx leia examples/basic-pwsh-example.md --shell powershell --stdin --debug diff --git a/.github/workflows/pr-unit-tests.yml b/.github/workflows/pr-unit-tests.yml index 203c256..c97a1b0 100644 --- a/.github/workflows/pr-unit-tests.yml +++ b/.github/workflows/pr-unit-tests.yml @@ -21,9 +21,9 @@ jobs: steps: # Install deps and cache - name: Checkout code - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Install node ${{ matrix.node-version }} - uses: actions/setup-node@v3 + uses: actions/setup-node@v4 with: node-version: ${{ matrix.node-version }} cache: npm diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 4121613..e8030a6 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -20,9 +20,9 @@ jobs: steps: # Install deps and cache - name: Checkout code - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Install node ${{ matrix.node-version }} - uses: actions/setup-node@v3 + uses: actions/setup-node@v4 with: node-version: ${{ matrix.node-version }} registry-url: https://registry.npmjs.org @@ -37,13 +37,21 @@ jobs: run: npm run test:unit - name: Run leia tests run: npx leia examples/basic-example.md - + - name: Export formatted release date + run: echo "RELEASE_DATE=$(date -d "${{ github.event.release.published_at }}" "+%B %e, %Y" | tr -s ' ')" >> $GITHUB_ENV - name: Prepare release uses: lando/prepare-release-action@v3 with: sync-token: ${{ secrets.RTFM47_COAXIUM_INJECTOR }} sync-email: rtfm47@lando.dev sync-username: rtfm-47 + update-files: CHANGELOG.md + update-files-header: | + ## {{ UNRELEASED_VERSION }} - [{{ UNRELEASED_DATE }}]({{ UNRELEASED_LINK }}) + update-files-meta: | + UNRELEASED_DATE=${{ env.RELEASE_DATE }} + UNRELEASED_LINK=${{ github.event.release.html_url }} + UNRELEASED_VERSION=${{ github.event.release.tag_name }} - name: Publish to npm run: | if [ "${{ github.event.release.prerelease }}" == "false" ]; then diff --git a/CHANGELOG.md b/CHANGELOG.md index cc0bfbd..d737eed 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,5 @@ +## {{ UNRELEASED_VERSION }} - [{{ UNRELEASED_DATE }}]({{ UNRELEASED_LINK }}) + ## v1.0.0-beta.3 - [March 15, 2024](https://github.com/lando/leia/releases/tag/v1.0.0-beta.3) * Fixed bug with `powershell` not throwing errors correctly diff --git a/package-lock.json b/package-lock.json index 6c5d5ec..96b6c97 100644 --- a/package-lock.json +++ b/package-lock.json @@ -6,7 +6,7 @@ "packages": { "": { "name": "@lando/leia", - "version": "1.0.0-beta.1", + "version": "1.0.0-beta.3", "license": "GPL-3.0", "dependencies": { "@lando/argv": "^1.0.6",