diff --git a/.actiongenrc.js b/.actiongenrc.js deleted file mode 100644 index 23dc108..0000000 --- a/.actiongenrc.js +++ /dev/null @@ -1,163 +0,0 @@ -const { buildConfig } = require('action-gen'); -module.exports = buildConfig({ - name: 'Assert Action', - description: { - short: 'Various assertions to aide in validating action outputs', - }, - inputs: [ - { - id: 'expected', - description: { - short: 'Expected value', - }, - required: true, - }, - { - id: 'actual', - description: { - short: 'Actual value', - }, - required: true, - }, - { - id: 'comparison', - description: { - short: - 'Type of comparison to perform. Supports `exact` (default), `startsWith`, `endsWith`, `contains`, `notEqual`, `notStartsWith`, `notEndsWith`, `notContains`', - }, - required: false, - default: 'exact', - }, - ], - outputs: [ - { - id: 'result', - description: 'Result of the comparison. Can be either passed or failed', - }, - ], - runs: { - using: 'node20', - main: 'dist/index.js', - }, - usage: { - examples: [ - { - title: 'Example usage w/ exact (using default comparison) assertion', - codeLanguage: 'yaml', - codeBlock: ` -- id: test-data - run: echo "::set-output name=value::testing" -- uses: nick-fields@assert-action@v1 - with: - expected: testing - actual: \${{ steps.test-data.outputs.value }} -`.trim(), - }, - { - title: 'Example usage w/ exact assertion', - codeLanguage: 'yaml', - codeBlock: ` -- id: test-data - run: echo "::set-output name=value::testing" -- uses: nick-fields@assert-action@v1 - with: - expected: testing - actual: \${{ steps.test-data.outputs.value }} - comparison: exact -`.trim(), - }, - { - title: 'Example usage w/ startsWith assertion', - codeLanguage: 'yaml', - codeBlock: ` -- id: test-data - run: echo "::set-output name=value::testing" -- uses: nick-fields@assert-action@v1 - with: - expected: test - actual: \${{ steps.test-data.outputs.value }} - comparison: startsWith -`.trim(), - }, - { - title: 'Example usage w/ notStartsWith assertion', - codeLanguage: 'yaml', - codeBlock: ` -- id: test-data - run: echo "::set-output name=value::testing" -- uses: nick-fields@assert-action@v1 - with: - expected: abc - actual: \${{ steps.test-data.outputs.value }} - comparison: notStartsWith -`.trim(), - }, - { - title: 'Example usage w/ endsWith assertion', - codeLanguage: 'yaml', - codeBlock: ` -- id: test-data - run: echo "::set-output name=value::testing" -- uses: nick-fields@assert-action@v1 - with: - expected: ing - actual: \${{ steps.test-data.outputs.value }} - comparison: endsWith -`.trim(), - }, - { - title: 'Example usage w/ notEndsWith assertion', - codeLanguage: 'yaml', - codeBlock: ` -- id: test-data - run: echo "::set-output name=value::testing" -- uses: nick-fields@assert-action@v1 - with: - expected: abc - actual: \${{ steps.test-data.outputs.value }} - comparison: notEndsWith -`.trim(), - }, - { - title: 'Example usage w/ contains assertion', - codeLanguage: 'yaml', - codeBlock: ` -- id: test-data - run: echo "::set-output name=value::testing" -- uses: nick-fields@assert-action@v1 - with: - expected: est - actual: \${{ steps.test-data.outputs.value }} - comparison: endsWith -`.trim(), - }, - { - title: 'Example usage w/ notContains assertion', - codeLanguage: 'yaml', - codeBlock: ` -- id: test-data - run: echo "::set-output name=value::testing" -- uses: nick-fields@assert-action@v1 - with: - expected: est - actual: \${{ steps.test-data.outputs.value }} - comparison: notEndsWith -`.trim(), - }, - { - title: 'Example usage w/ notEqual assertion', - codeLanguage: 'yaml', - codeBlock: ` -- id: test-data - run: echo "::set-output name=value::testing" -- uses: nick-fields@assert-action@v1 - with: - expected: abc - actual: \${{ steps.test-data.outputs.value }} - comparison: notEqual -`.trim(), - }, - ], - }, - limitations: ['If running on self-hosted runner, NodeJS must be installed.'], -}); diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 1e2cd45..1fd09e5 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -12,7 +12,7 @@ jobs: # positive tests to verify assertions work as expected - name: Setup Test Data id: test-data - run: echo "::set-output name=value::testing" + run: echo "value=testing" >> $GITHUB_OUTPUT - name: Assert expected uses: ./ with: diff --git a/.gitignore b/.gitignore index adb2c19..66fd720 100644 --- a/.gitignore +++ b/.gitignore @@ -101,3 +101,6 @@ typings/ # TernJS port file .tern-port + +# Generated test files +GITHUB_OUTPUT \ No newline at end of file diff --git a/README.md b/README.md index 3cf8748..f8e89ed 100644 --- a/README.md +++ b/README.md @@ -36,8 +36,8 @@ Result of the comparison. Can be either passed or failed ```yaml - id: test-data - run: echo "::set-output name=value::testing" -- uses: nick-fields/assert-action@v2 + run: echo "value=testing" >> $GITHUB_OUTPUT +- uses: nick-fields/assert-action@v4 with: expected: testing actual: ${{ steps.test-data.outputs.value }} @@ -47,8 +47,8 @@ Result of the comparison. Can be either passed or failed ```yaml - id: test-data - run: echo "::set-output name=value::testing" -- uses: nick-fields/assert-action@v2 + run: echo "value=testing" >> $GITHUB_OUTPUT +- uses: nick-fields/assert-action@v4 with: expected: testing actual: ${{ steps.test-data.outputs.value }} @@ -59,8 +59,8 @@ Result of the comparison. Can be either passed or failed ```yaml - id: test-data - run: echo "::set-output name=value::testing" -- uses: nick-fields/assert-action@v2 + run: echo "value=testing" >> $GITHUB_OUTPUT +- uses: nick-fields/assert-action@v4 with: expected: test actual: ${{ steps.test-data.outputs.value }} @@ -71,8 +71,8 @@ Result of the comparison. Can be either passed or failed ```yaml - id: test-data - run: echo "::set-output name=value::testing" -- uses: nick-fields/assert-action@v2 + run: echo "value=testing" >> $GITHUB_OUTPUT +- uses: nick-fields/assert-action@v4 with: expected: abc actual: ${{ steps.test-data.outputs.value }} @@ -83,8 +83,8 @@ Result of the comparison. Can be either passed or failed ```yaml - id: test-data - run: echo "::set-output name=value::testing" -- uses: nick-fields/assert-action@v2 + run: echo "value=testing" >> $GITHUB_OUTPUT +- uses: nick-fields/assert-action@v4 with: expected: ing actual: ${{ steps.test-data.outputs.value }} @@ -95,8 +95,8 @@ Result of the comparison. Can be either passed or failed ```yaml - id: test-data - run: echo "::set-output name=value::testing" -- uses: nick-fields/assert-action@v2 + run: echo "value=testing" >> $GITHUB_OUTPUT +- uses: nick-fields/assert-action@v4 with: expected: abc actual: ${{ steps.test-data.outputs.value }} @@ -107,20 +107,20 @@ Result of the comparison. Can be either passed or failed ```yaml - id: test-data - run: echo "::set-output name=value::testing" -- uses: nick-fields/assert-action@v2 + run: echo "value=testing" >> $GITHUB_OUTPUT +- uses: nick-fields/assert-action@v4 with: expected: est actual: ${{ steps.test-data.outputs.value }} - comparison: contains + comparison: endsWith ``` ### Example usage w/ notContains assertion ```yaml - id: test-data - run: echo "::set-output name=value::testing" -- uses: nick-fields/assert-action@v2 + run: echo "value=testing" >> $GITHUB_OUTPUT +- uses: nick-fields/assert-action@v4 with: expected: abc actual: ${{ steps.test-data.outputs.value }} @@ -131,8 +131,8 @@ Result of the comparison. Can be either passed or failed ```yaml - id: test-data - run: echo "::set-output name=value::testing" -- uses: nick-fields/assert-action@v2 + run: echo "value=testing" >> $GITHUB_OUTPUT +- uses: nick-fields/assert-action@v4 with: expected: abc actual: ${{ steps.test-data.outputs.value }} @@ -144,11 +144,3 @@ Result of the comparison. Can be either passed or failed ## **Limitations** - If running on self-hosted runner, NodeJS must be installed. - ---- - -## **Ownership** - -As of 2022/02/15 ownership of this project has been transferred to my personal account `nick-fields` from my work account `nick-invision` due to me leaving InVision. I am the author and have been the primary maintainer since day one and will continue to maintain this as needed. - -No immediate action is required if you rely on this as GitHub handles ownership transfers pretty well. Any current workflow reference to `nick-invision/assert-action@` will still work, but will just pull from `nick-fields/assert-action@` instead. Who knows how long that will work, so at some point it would be beneficial to update your workflows to reflect the new owner accordingly. diff --git a/__tests__/index.spec.js b/__tests__/index.spec.js index 0f6fb17..c28e89a 100644 --- a/__tests__/index.spec.js +++ b/__tests__/index.spec.js @@ -1,7 +1,17 @@ +jest.mock('@actions/core', () => ({ + getInput: (name) => process.env[`INPUT_${name.toUpperCase()}`], + setFailed: jest.fn(), +})); const actions = require('@actions/core'); +const fs = require('fs'); +const path = require('path'); -actions.setOutput = jest.fn(); -actions.setFailed = jest.fn(); +const OUTPUT_PATH = path.join(__dirname, 'GITHUB_OUTPUT'); +const clearOutput = () => { + try { + fs.unlinkSync(OUTPUT_PATH); + } catch (e) { } +}; const { runAction } = require('../index'); @@ -25,6 +35,8 @@ describe('runAction', () => { mockExpected(DEFAULT_EXPECTED); mockActual(DEFAULT_ACTUAL); mockComparison(DEFAULT_COMPARISON); + process.env.GITHUB_OUTPUT = OUTPUT_PATH; + clearOutput(); }); describe('exact', () => { @@ -39,13 +51,15 @@ describe('runAction', () => { delete process.env[COMPARISON_INPUT_NAME]; await runAction(); - expect(actions.setOutput).toHaveBeenCalledWith('result', 'passed'); + const out = fs.readFileSync(process.env.GITHUB_OUTPUT, 'utf8'); + expect(out).toContain('result=passed'); }); it('success when exact', async () => { await runAction(); - expect(actions.setOutput).toHaveBeenCalledWith('result', 'passed'); + const out = fs.readFileSync(process.env.GITHUB_OUTPUT, 'utf8'); + expect(out).toContain('result=passed'); }); for (const test of failTests) { @@ -60,7 +74,8 @@ describe('runAction', () => { thrownErr = error.message; } - expect(actions.setOutput).toHaveBeenCalledWith('result', 'failed'); + const out = fs.readFileSync(process.env.GITHUB_OUTPUT, 'utf8'); + expect(out).toContain('result=failed'); expect(thrownErr).toContain('Expected', 'to equal'); }); it(`fails when ${test} does not match actual ${DEFAULT_ACTUAL}`, async () => { @@ -73,7 +88,8 @@ describe('runAction', () => { thrownErr = error.message; } - expect(actions.setOutput).toHaveBeenCalledWith('result', 'failed'); + const out = fs.readFileSync(process.env.GITHUB_OUTPUT, 'utf8'); + expect(out).toContain('result=failed'); expect(thrownErr).toContain('Expected', 'to equal'); }); } @@ -96,7 +112,8 @@ describe('runAction', () => { mockExpected(DEFAULT_EXPECTED.substring(0, 4)); await runAction(); - expect(actions.setOutput).toHaveBeenCalledWith('result', 'passed'); + const out = fs.readFileSync(process.env.GITHUB_OUTPUT, 'utf8'); + expect(out).toContain('result=passed'); }); for (const test of failTests) { @@ -110,7 +127,8 @@ describe('runAction', () => { thrownErr = error.message; } - expect(actions.setOutput).toHaveBeenCalledWith('result', 'failed'); + const out = fs.readFileSync(process.env.GITHUB_OUTPUT, 'utf8'); + expect(out).toContain('result=failed'); expect(thrownErr).toContain('Expected', 'to start with'); }); } @@ -137,7 +155,8 @@ describe('runAction', () => { it(`success when ${actual} ${comparison} ${expected}`, async () => { await runAction(); - expect(actions.setOutput).toHaveBeenCalledWith('result', 'passed'); + const out = fs.readFileSync(process.env.GITHUB_OUTPUT, 'utf8'); + expect(out).toContain('result=passed'); }); for (const test of failTests) { @@ -151,7 +170,8 @@ describe('runAction', () => { thrownErr = error.message; } - expect(actions.setOutput).toHaveBeenCalledWith('result', 'failed'); + const out = fs.readFileSync(process.env.GITHUB_OUTPUT, 'utf8'); + expect(out).toContain('result=failed'); expect(thrownErr).toContain('Expected', 'to end with'); }); } @@ -193,7 +213,8 @@ describe('runAction', () => { mockExpected(test); await runAction(); - expect(actions.setOutput).toHaveBeenCalledWith('result', 'passed'); + const out = fs.readFileSync(process.env.GITHUB_OUTPUT, 'utf8'); + expect(out).toContain('result=passed'); }); } @@ -208,7 +229,8 @@ describe('runAction', () => { thrownErr = error.message; } - expect(actions.setOutput).toHaveBeenCalledWith('result', 'failed'); + const out = fs.readFileSync(process.env.GITHUB_OUTPUT, 'utf8'); + expect(out).toContain('result=failed'); expect(thrownErr).toContain('Expected', 'to end with'); }); } @@ -244,7 +266,8 @@ describe('runAction', () => { mockExpected(test); await runAction(); - expect(actions.setOutput).toHaveBeenCalledWith('result', 'passed'); + const out = fs.readFileSync(process.env.GITHUB_OUTPUT, 'utf8'); + expect(out).toContain('result=passed'); }); } @@ -259,7 +282,8 @@ describe('runAction', () => { thrownErr = error.message; } - expect(actions.setOutput).toHaveBeenCalledWith('result', 'failed'); + const out = fs.readFileSync(process.env.GITHUB_OUTPUT, 'utf8'); + expect(out).toContain('result=failed'); expect(thrownErr).toContain('Expected', 'not equal'); }); } @@ -283,7 +307,8 @@ describe('runAction', () => { mockExpected(test); await runAction(); - expect(actions.setOutput).toHaveBeenCalledWith('result', 'passed'); + const out = fs.readFileSync(process.env.GITHUB_OUTPUT, 'utf8'); + expect(out).toContain('result=passed'); }); } @@ -298,7 +323,8 @@ describe('runAction', () => { thrownErr = error.message; } - expect(actions.setOutput).toHaveBeenCalledWith('result', 'failed'); + const out = fs.readFileSync(process.env.GITHUB_OUTPUT, 'utf8'); + expect(out).toContain('result=failed'); expect(thrownErr).toContain('Expected', 'not equal'); }); } @@ -322,7 +348,8 @@ describe('runAction', () => { mockExpected(test); await runAction(); - expect(actions.setOutput).toHaveBeenCalledWith('result', 'passed'); + const out = fs.readFileSync(process.env.GITHUB_OUTPUT, 'utf8'); + expect(out).toContain('result=passed'); }); } @@ -337,7 +364,8 @@ describe('runAction', () => { thrownErr = error.message; } - expect(actions.setOutput).toHaveBeenCalledWith('result', 'failed'); + const out = fs.readFileSync(process.env.GITHUB_OUTPUT, 'utf8'); + expect(out).toContain('result=failed'); expect(thrownErr).toContain('Expected', 'not equal'); }); } @@ -361,7 +389,8 @@ describe('runAction', () => { mockExpected(test); await runAction(); - expect(actions.setOutput).toHaveBeenCalledWith('result', 'passed'); + const out = fs.readFileSync(process.env.GITHUB_OUTPUT, 'utf8'); + expect(out).toContain('result=passed'); }); } @@ -376,7 +405,8 @@ describe('runAction', () => { thrownErr = error.message; } - expect(actions.setOutput).toHaveBeenCalledWith('result', 'failed'); + const out = fs.readFileSync(process.env.GITHUB_OUTPUT, 'utf8'); + expect(out).toContain('result=failed'); expect(thrownErr).toContain('Expected', 'not equal'); }); } diff --git a/dist/index.js b/dist/index.js index 810b715..3a457dd 100644 --- a/dist/index.js +++ b/dist/index.js @@ -4,7 +4,8 @@ /***/ 6136: /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { -const { getInput, setFailed, setOutput } = __nccwpck_require__(7484); +const { getInput, setFailed } = __nccwpck_require__(7484); +const fs = __nccwpck_require__(9896); const DEFAULT_COMPARISON = 'exact'; const SUPPORTED_COMPARISONS = [ @@ -21,10 +22,21 @@ const SUPPORTED_COMPARISONS = [ function throwAssertError(expected, actual, comparison) { const msg = `Expected '${actual}' to ${comparison} '${expected}'`; - setOutput('result', 'failed'); + writeOutput('result', 'failed'); throw new Error(msg); } +function writeOutput(name, value) { + const outputPath = process.env.GITHUB_OUTPUT; + const line = `${name}=${value}\n`; + if (outputPath) { + fs.appendFileSync(outputPath, line); + } else { + // If not running in Actions, warn (tests set GITHUB_OUTPUT) + console.warn('GITHUB_OUTPUT not set, skipping output', line.trim()); + } +} + async function runAction() { const expected = getInput('expected'); const actual = getInput('actual'); @@ -91,13 +103,14 @@ async function runAction() { ); } - setOutput('result', 'passed'); + writeOutput('result', 'passed'); } // this is dumb but makes it easier to test if (!process.env.TEST_RUNNING) { runAction().catch((err) => { - setFailed(err.message), setOutput('result', 'failed'); + setFailed(err.message); + writeOutput('result', 'failed'); process.exit(1); }); } diff --git a/index.js b/index.js index bd6a222..6c50d3a 100644 --- a/index.js +++ b/index.js @@ -1,4 +1,5 @@ -const { getInput, setFailed, setOutput } = require('@actions/core'); +const { getInput, setFailed } = require('@actions/core'); +const fs = require('fs'); const DEFAULT_COMPARISON = 'exact'; const SUPPORTED_COMPARISONS = [ @@ -15,10 +16,21 @@ const SUPPORTED_COMPARISONS = [ function throwAssertError(expected, actual, comparison) { const msg = `Expected '${actual}' to ${comparison} '${expected}'`; - setOutput('result', 'failed'); + writeOutput('result', 'failed'); throw new Error(msg); } +function writeOutput(name, value) { + const outputPath = process.env.GITHUB_OUTPUT; + const line = `${name}=${value}\n`; + if (outputPath) { + fs.appendFileSync(outputPath, line); + } else { + // If not running in Actions, warn (tests set GITHUB_OUTPUT) + console.warn('GITHUB_OUTPUT not set, skipping output', line.trim()); + } +} + async function runAction() { const expected = getInput('expected'); const actual = getInput('actual'); @@ -85,13 +97,14 @@ async function runAction() { ); } - setOutput('result', 'passed'); + writeOutput('result', 'passed'); } // this is dumb but makes it easier to test if (!process.env.TEST_RUNNING) { runAction().catch((err) => { - setFailed(err.message), setOutput('result', 'failed'); + setFailed(err.message); + writeOutput('result', 'failed'); process.exit(1); }); } diff --git a/package-lock.json b/package-lock.json index 82f020c..88cbd85 100644 --- a/package-lock.json +++ b/package-lock.json @@ -9,13 +9,12 @@ "version": "1.0.0", "license": "MIT", "devDependencies": { - "@actions/core": "^1.10.0", + "@actions/core": "^1.11.0", "@commitlint/cli": "^8.3.5", "@commitlint/config-conventional": "^8.3.4", "@semantic-release/changelog": "^6.0.2", "@semantic-release/git": "^10.0.1", "@vercel/ncc": "^0.38.4", - "action-gen": "1.1.6", "cross-env": "7.0.2", "decache": "4.6.0", "dotenv": "8.2.0", @@ -2329,39 +2328,6 @@ "node": ">=0.4.0" } }, - "node_modules/action-gen": { - "version": "1.1.6", - "resolved": "https://registry.npmjs.org/action-gen/-/action-gen-1.1.6.tgz", - "integrity": "sha512-94INU5RH5uGHsjtai6ldeaxR87JwlFo8jwA7PB7f6M6XSHi/nyiMnZ3/yY0tABI/33535DoYGSPoKRqtdyngnw==", - "dev": true, - "license": "ISC", - "dependencies": { - "colors": "^1.4.0", - "commander": "^4.1.0", - "figlet": "^1.2.4", - "import-fresh": "^3.2.1", - "js-yaml": "^3.13.1", - "mkdirp": "^1.0.3", - "mustache": "^4.0.0", - "yargs": "^15.3.0" - }, - "bin": { - "action-gen": "dist/cli.js" - } - }, - "node_modules/action-gen/node_modules/mkdirp": { - "version": "1.0.4", - "resolved": "https://registry.npmjs.org/mkdirp/-/mkdirp-1.0.4.tgz", - "integrity": "sha512-vVqVZQyf3WLx2Shd0qJ9xuvqgAyKPLAiqITEtqW0oIUjzo3PePDd6fW9iFz30ef7Ysp/oiWqbhszeGWW2T6Gzw==", - "dev": true, - "license": "MIT", - "bin": { - "mkdirp": "bin/cmd.js" - }, - "engines": { - "node": ">=10" - } - }, "node_modules/agent-base": { "version": "6.0.2", "resolved": "https://registry.npmjs.org/agent-base/-/agent-base-6.0.2.tgz", @@ -3286,16 +3252,6 @@ "dev": true, "license": "MIT" }, - "node_modules/colors": { - "version": "1.4.0", - "resolved": "https://registry.npmjs.org/colors/-/colors-1.4.0.tgz", - "integrity": "sha512-a+UqTh4kgZg/SlGvfbzDHpgRu7AAQOmmqRHJnxhRZICKFUT91brVhNNt58CMWU9PsBbv3PDCZUHbVxuDiH2mtA==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=0.1.90" - } - }, "node_modules/combined-stream": { "version": "1.0.8", "resolved": "https://registry.npmjs.org/combined-stream/-/combined-stream-1.0.8.tgz", @@ -3309,16 +3265,6 @@ "node": ">= 0.8" } }, - "node_modules/commander": { - "version": "4.1.1", - "resolved": "https://registry.npmjs.org/commander/-/commander-4.1.1.tgz", - "integrity": "sha512-NOKm8xhkzAjzFx8B2v5OAHT+u5pRQc2UCa2Vq9jYL/31o2wi9mxBA7LIFs3sV5VSC49z6pEhfbMULvShKj26WA==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">= 6" - } - }, "node_modules/compare-func": { "version": "1.3.4", "resolved": "https://registry.npmjs.org/compare-func/-/compare-func-1.3.4.tgz", @@ -4818,32 +4764,6 @@ "bser": "2.1.1" } }, - "node_modules/figlet": { - "version": "1.11.0", - "resolved": "https://registry.npmjs.org/figlet/-/figlet-1.11.0.tgz", - "integrity": "sha512-EEx3OS/l2bFqcUNN2NM9FPJp8vAMrgbCxsbl2hbcJNNxOEwVe3mEzrhan7TbJQViZa8mMqhihlbCaqD+LyYKTQ==", - "dev": true, - "license": "MIT", - "dependencies": { - "commander": "^14.0.0" - }, - "bin": { - "figlet": "bin/index.js" - }, - "engines": { - "node": ">= 17.0.0" - } - }, - "node_modules/figlet/node_modules/commander": { - "version": "14.0.3", - "resolved": "https://registry.npmjs.org/commander/-/commander-14.0.3.tgz", - "integrity": "sha512-H+y0Jo/T1RZ9qPP4Eh1pkcQcLRglraJaSLoyOtHxu6AapkjWVCy2Sit1QQ4x3Dng8qDlSsZEet7g5Pq06MvTgw==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=20" - } - }, "node_modules/figures": { "version": "3.2.0", "resolved": "https://registry.npmjs.org/figures/-/figures-3.2.0.tgz", @@ -8940,16 +8860,6 @@ "dev": true, "license": "MIT" }, - "node_modules/mustache": { - "version": "4.2.0", - "resolved": "https://registry.npmjs.org/mustache/-/mustache-4.2.0.tgz", - "integrity": "sha512-71ippSywq5Yb7/tVYyGbkBggbU8H3u5Rz56fH60jGFgr8uHwxs+aSKeqmluIVzM0m0kB7xQjKS6qPfd0b2ZoqQ==", - "dev": true, - "license": "MIT", - "bin": { - "mustache": "bin/mustache" - } - }, "node_modules/nanomatch": { "version": "1.2.13", "resolved": "https://registry.npmjs.org/nanomatch/-/nanomatch-1.2.13.tgz", diff --git a/package.json b/package.json index 9401879..f5b1883 100644 --- a/package.json +++ b/package.json @@ -4,7 +4,6 @@ "description": "Performs different types of assertions for use in an Action workflow.", "main": "index.js", "scripts": { - "generateAction": "action-gen generate", "build": "ncc build ./index.js -o ./dist", "test": "cross-env TEST_RUNNING=true jest" }, @@ -15,13 +14,12 @@ "author": "Nick Fields", "license": "MIT", "devDependencies": { - "@actions/core": "^1.10.0", + "@actions/core": "^1.11.0", "@commitlint/cli": "^8.3.5", "@commitlint/config-conventional": "^8.3.4", "@semantic-release/changelog": "^6.0.2", "@semantic-release/git": "^10.0.1", "@vercel/ncc": "^0.38.4", - "action-gen": "1.1.6", "cross-env": "7.0.2", "decache": "4.6.0", "dotenv": "8.2.0",