Skip to content

Commit

Permalink
chore(release): try to test builds after release has been done
Browse files Browse the repository at this point in the history
  • Loading branch information
kkoomen committed Jul 9, 2023
1 parent 265611f commit 481a016
Show file tree
Hide file tree
Showing 3 changed files with 39 additions and 8 deletions.
37 changes: 37 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -69,3 +69,40 @@ jobs:
files: ${{ matrix.settings.asset_path }}
draft: false
prerelease: true

test_uploaded_builds:
needs: build_and_upload_release_assets
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, windows-latest, macos-latest]
runs-on: ${{ matrix.os }}
steps:
- name: Checkout kkoomen/vim-doge
uses: actions/checkout@v3

- name: Download binary (unix)
if: runner.os != 'Windows'
run: ./scripts/install.sh
shell: bash

- name: Test binary (unix)
if: runner.os != 'Windows'
run: |
if ! bin/vim-doge-helper --version > /dev/null 2>&1; then
echo "vim-doge-helper is not installed properly"
exit 1
fi
shell: bash

- name: Download binary (windows)
if: runner.os == 'Windows'
run: ./scripts/install.ps1

- name: Test binary (windows)
if: runner.os == 'Windows'
run: |
if (!(bin/vim-doge-helper.exe --version 2>$null)) {
Write-Host "vim-doge-helper is not installed properly"
exit 1
}
5 changes: 1 addition & 4 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ that vim-doge had in v3.

This new version resolves the following problems that existed prior to v4:
- Failing Windows builds due to node-gyp build problems
- Templating limitations: v4 contained basic templating functionality that
- Templating limitations: v3 contained basic templating functionality that
was customly written, as opposed to v4 that uses
[Tera](https://tera.netlify.app/docs)
- Limited platform builds: v3 required due to NodeJS that binaries were created
Expand All @@ -31,9 +31,6 @@ This new version resolves the following problems that existed prior to v4:
binary, did require NodeJS to start the runtime which would take a second or
two.


Besides the above being resolved,

## [3.22.0](https://github.com/kkoomen/vim-doge/compare/v3.21.0...v3.22.0) (2023-06-10)

### Features
Expand Down
5 changes: 1 addition & 4 deletions scripts/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,7 @@
set -e
set -u

if which curl 2>&1 > /dev/null
then
continue
else
if ! which curl > /dev/null 2>&1; then
echo "curl: command not found" >&2
echo 'Please make sure that curl is installed and available in your $PATH' >&2
exit 127
Expand Down

0 comments on commit 481a016

Please sign in to comment.