-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add build workflow to reproduce einval problem
- Loading branch information
Showing
5 changed files
with
75 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
name: Build | ||
|
||
on: | ||
workflow_dispatch: | ||
pull_request: | ||
branches: | ||
- "*" | ||
push: | ||
branches: | ||
- "main" | ||
- "hotfix-*" | ||
|
||
jobs: | ||
build: | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
node-version: [ 18, 20, 21 ] | ||
os: [ ubuntu-latest, windows-latest, macos-latest ] | ||
runs-on: ${{ matrix.os }} | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: actions/setup-node@v1 | ||
with: | ||
node-version: ${{ matrix.node-version }} | ||
registry-url: https://registry.npmjs.org/ | ||
- run: npm ci | ||
- name: "Fetch & Unpack Allure Commandline from Maven Central" | ||
run: ./fetch-source.sh | ||
if: runner.os == 'ubuntu-latest' || runner.os == 'macos-latest' | ||
- name: "Fetch & Unpack Allure Commandline from Maven Central" | ||
run: powershell -ExecutionPolicy Bypass -File fetch-source.ps1 | ||
if: runner.os == 'windows-latest' | ||
- run: npm link | ||
- run: allure --version |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
# Get version from package.json | ||
$version = node -p "require('./package.json').version" | ||
|
||
# Remove dist directory if it exists and create a new one | ||
if(Test-Path -Path dist) { | ||
Remove-Item -Path dist -Recurse -Force | ||
} | ||
New-Item -ItemType Directory -Path dist | ||
|
||
# Remove allure-commandline.zip if it exists | ||
if(Test-Path -Path allure-commandline.zip) { | ||
Remove-Item -Path allure-commandline.zip -Force | ||
} | ||
|
||
# Download allure-commandline.zip from Maven repository | ||
Invoke-WebRequest -Uri "https://repo.maven.apache.org/maven2/io/qameta/allure/allure-commandline/$version/allure-commandline-$version.zip" -OutFile allure-commandline.zip | ||
|
||
# Extract allure-commandline.zip to dist directory | ||
Add-Type -AssemblyName System.IO.Compression.FileSystem | ||
[System.IO.Compression.ZipFile]::ExtractToDirectory('allure-commandline.zip', 'dist') | ||
|
||
# List files in current directory | ||
Get-ChildItem -Path . |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters