From 5ba9938e4d33a269d2a9d7449ab0790b731cd05f Mon Sep 17 00:00:00 2001 From: Mathieu Kardous Date: Thu, 12 Dec 2024 13:28:06 -0500 Subject: [PATCH] action configuration --- .github/workflows/eslint-check.yml | 2 +- .github/workflows/unit-tests.yml | 3 ++- .github/workflows/validate-action.yml | 3 ++- package-lock.json | 5 ++++- package.json | 5 ++++- 5 files changed, 13 insertions(+), 5 deletions(-) diff --git a/.github/workflows/eslint-check.yml b/.github/workflows/eslint-check.yml index d24034d..e3b91e4 100644 --- a/.github/workflows/eslint-check.yml +++ b/.github/workflows/eslint-check.yml @@ -1,6 +1,6 @@ name: ESLint Check -on: [push, pull_request] +on: [pull_request] jobs: eslint: diff --git a/.github/workflows/unit-tests.yml b/.github/workflows/unit-tests.yml index 5fb40ef..e52b73f 100644 --- a/.github/workflows/unit-tests.yml +++ b/.github/workflows/unit-tests.yml @@ -1,6 +1,6 @@ name: Run unit tests -on: [push, pull_request] +on: [pull_request] jobs: build: @@ -20,5 +20,6 @@ jobs: node-version: ${{ matrix.node-version }} - name: Install dependencies run: npm install + - name: Run tests run: npm test diff --git a/.github/workflows/validate-action.yml b/.github/workflows/validate-action.yml index 151027b..5ce5465 100644 --- a/.github/workflows/validate-action.yml +++ b/.github/workflows/validate-action.yml @@ -1,11 +1,12 @@ name: "Validate Action" -on: [push, pull_request] +on: [pull_request] jobs: validate: runs-on: ubuntu-latest steps: - name: Checkout code uses: actions/checkout@v2 + - name: Run JSON File Action uses: ./ # Assuming the action is in the root directory with: diff --git a/package-lock.json b/package-lock.json index a81edf1..c24d0aa 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,9 +1,12 @@ { - "name": "matter-gn-build-action", + "name": "your-action", + "version": "0.0.1", "lockfileVersion": 3, "requires": true, "packages": { "": { + "name": "your-action", + "version": "0.0.1", "dependencies": { "@actions/core": "^1.11.1", "@actions/github": "^6.0.0" diff --git a/package.json b/package.json index 9b3af06..4829b30 100644 --- a/package.json +++ b/package.json @@ -1,4 +1,7 @@ { + "name": "your-action", + "version": "0.0.1", + "description": "Silicon Labs Matter GN Build Action", "devDependencies": { "@eslint/js": "^9.16.0", "eslint": "^9.16.0", @@ -12,4 +15,4 @@ "scripts": { "test": "jest" } -} +} \ No newline at end of file