Skip to content
This repository has been archived by the owner on Sep 23, 2024. It is now read-only.

DUMMY PR DO NOT MERGE #67

Draft
wants to merge 2 commits into
base: master
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
52 changes: 52 additions & 0 deletions .github/actions/test/action.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
---
name: test release
# https://github.com/product-os/flowzone/tree/master/.github/actions
inputs:
json:
description: "JSON stringified object containing all the inputs from the calling workflow"
required: true
secrets:
description: "JSON stringified object containing all the secrets from the calling workflow"
required: true
variables:
description: "JSON stringified object containing all the variables from the calling workflow"
required: true

# --- custom environment
NODE_VERSION:
type: string
default: '20.x'
VERBOSE:
type: string
default: "true"

runs:
# https://docs.github.com/en/actions/creating-actions/creating-a-composite-action
using: "composite"
steps:
- name: Setup Node.js 20
uses: actions/setup-node@v3
with:
node-version: 20

- name: Install dependencies
shell: bash
run: |
if [ -e package-lock.json ]; then
npm ci
else
npm i
fi

- name: Run custom node tests
shell: bash
run: |
# os_value is a JSON array of runner labels but we are only looking at the first element
node -v
npm -v
set -ea

[[ '${{ inputs.VERBOSE }}' =~ on|On|Yes|yes|true|True ]] && set -x

npm run build
npm run test
13 changes: 13 additions & 0 deletions .github/workflows/flowzone.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,3 +25,16 @@ jobs:

# Workflows in the same org or enterprise can use the inherit keyword to implicitly pass secrets
secrets: inherit
with:
custom_test_matrix: >
{
"os": [
["self-hosted", "X64"],
["self-hosted", "ARM64"],
["macos-12"],
["windows-2019"],
["macos-latest-xlarge"]
]
}
github_prerelease: false
restrict_custom_actions: false
9 changes: 4 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "balena-image-manager",
"version": "10.0.1",
"description": "Manage device base operating systems resources with caching support",
"description": "Manage device base operating systems resources with caching suppor",
"main": "build/manager.js",
"types": "build/manager.d.ts",
"homepage": "https://github.com/balena-io-modules/balena-image-manager",
Expand All @@ -20,14 +20,13 @@
"test": "tests"
},
"scripts": {
"build": "npx tsc && npm run readme",
"build": "npx tsc",
"lint": "balena-lint lib",
"lint-fix": "balena-lint --fix lib",
"pretest": "npm run build",
"test": "mocha -r coffeescript/register tests/**/*.spec.coffee",
"posttest": "npm run lint",
"prepare": "npm run build",
"readme": "jsdoc2md --template doc/README.hbs build/manager.js > README.md"
"prepare": "npm run build"
},
"author": "Balena Inc. (https://balena.io/)",
"license": "Apache-2.0",
Expand All @@ -39,10 +38,10 @@
"@types/mime": "^2.0.3",
"@types/mkdirp": "^1.0.1",
"@types/node": "^18.0.0",
"bluebird": "^3.7.2",
"coffeescript": "^1.12.7",
"gulp-coffeelint": "^0.6.0",
"gulp-util": "^3.0.8",
"jsdoc-to-markdown": "^6.0.1",
"mocha": "^3.5.3",
"mochainon": "^1.0.0",
"mock-fs": "^4.12.0",
Expand Down
Loading