diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml new file mode 100644 index 0000000..88b372f --- /dev/null +++ b/.github/workflows/build.yml @@ -0,0 +1,30 @@ +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 + - run: npm run test diff --git a/package-lock.json b/package-lock.json index 6eccdf6..ca73f48 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,5 +1,17 @@ { "name": "allure-commandline", - "version": "2.13.8", - "lockfileVersion": 1 + "version": "2.28.0", + "lockfileVersion": 3, + "requires": true, + "packages": { + "": { + "name": "allure-commandline", + "version": "2.28.0", + "license": "Apache-2.0", + "bin": { + "allure": "bin/allure" + }, + "devDependencies": {} + } + } } diff --git a/package.json b/package.json index 5deaf1a..b38019a 100644 --- a/package.json +++ b/package.json @@ -12,7 +12,7 @@ "index.js" ], "scripts": { - "test": "./bin/allure --version" + "test": "node ./bin/allure --version" }, "repository": "https://github.com/allure-framework/allure-npm.git", "license": "Apache-2.0",