Skip to content

Commit

Permalink
Add smoke test for release artifacts
Browse files Browse the repository at this point in the history
Closes #12
  • Loading branch information
L7R7 committed Jul 21, 2024
1 parent 3a5aff9 commit 60a35e7
Showing 1 changed file with 35 additions and 0 deletions.
35 changes: 35 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -115,3 +115,38 @@ jobs:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
gh release upload "${{ github.ref_name }}" "${{ env.ZIP_PATH }}#${{ runner.os }}.zip" --repo="$GITHUB_REPOSITORY"
test:
strategy:
fail-fast: false
matrix:
include:
- os: ubuntu-latest
# - os: macOS-13
- os: windows-latest
name: Test built binaries
runs-on: ${{ matrix.os }}
needs: build_artifact
steps:
- # Apparently, gh requires to live in a git repo in order to work on windows
if: matrix.os == 'windows-latest'
name: Check out code
uses: actions/checkout@v4

- name: Set tag name
uses: olegtarasov/get-tag@2.1.3
id: tag
with:
tagRegex: "v(.*)"
tagRegexGroup: 1

- name: download and extract executable
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
gh release download "${{ github.ref_name }}" --pattern '*${{ runner.os }}.zip' --repo="$GITHUB_REPOSITORY" --output artifact.zip
7z e artifact.zip
- name: smoke test
run: |
./gitlab-helper --version

0 comments on commit 60a35e7

Please sign in to comment.