Skip to content

Commit

Permalink
update devops flows
Browse files Browse the repository at this point in the history
  • Loading branch information
pirog committed Jul 22, 2024
1 parent a00f243 commit 3b30f91
Show file tree
Hide file tree
Showing 7 changed files with 29 additions and 13 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/pr-leia-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/pr-linter.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
12 changes: 9 additions & 3 deletions .github/workflows/pr-shell-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -48,11 +48,17 @@ 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: |
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
4 changes: 2 additions & 2 deletions .github/workflows/pr-unit-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
14 changes: 11 additions & 3 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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: [email protected]
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
Expand Down
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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
Expand Down
2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 3b30f91

Please sign in to comment.