From fea8f05782177acd78a1e31be080cae0e2fa0880 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C3=ABl=20Zasso?= Date: Fri, 5 Mar 2021 10:37:06 +0100 Subject: [PATCH 1/5] ci: add a GitHub workflow to test a module with CITGM --- .github/workflows/test-module.yml | 53 +++++++++++++++++++++++++++++++ 1 file changed, 53 insertions(+) create mode 100644 .github/workflows/test-module.yml diff --git a/.github/workflows/test-module.yml b/.github/workflows/test-module.yml new file mode 100644 index 000000000..bee13e1b9 --- /dev/null +++ b/.github/workflows/test-module.yml @@ -0,0 +1,53 @@ +name: Test a module with CITGM + +on: + workflow_dispatch: + inputs: + module: + description: 'Module to test' + required: true + repository: + description: 'CITGM repository to checkout' + required: true + default: nodejs/citgm + ref: + description: 'CITGM GitHub ref to checkout' + required: true + default: main + +jobs: + test-module: + name: Test on Node.js ${{ matrix.node-version }} and ${{ matrix.os }} + + strategy: + fail-fast: false + matrix: + os: + - macos-latest + - ubuntu-latest + - windows-latest + node-version: + - 10.x + - 12.x + - 14.x + - 15.x + + runs-on: ${{ matrix.os }} + + steps: + - name: Checkout code + uses: actions/checkout@v2 + with: + repository: ${{ github.event.inputs.repository }} + ref: ${{ github.event.inputs.ref }} + + - name: Use Node.js ${{ matrix.node-version }} + uses: actions/setup-node@v2 + with: + node-version: ${{ matrix.node-version }} + + - name: Install packages + run: npm install + + - name: Run CITGM + run: node bin/citgm.js ${{ github.event.inputs.module }} From bb0885b08d90407fa2737b3720777602b1343710 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C3=ABl=20Zasso?= Date: Fri, 5 Mar 2021 12:15:46 +0100 Subject: [PATCH 2/5] fixup! ci: add a GitHub workflow to test a module with CITGM --- .github/workflows/test-module.yml | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/.github/workflows/test-module.yml b/.github/workflows/test-module.yml index bee13e1b9..9b6d95dbf 100644 --- a/.github/workflows/test-module.yml +++ b/.github/workflows/test-module.yml @@ -16,6 +16,15 @@ on: default: main jobs: + show-parameters: + name: Testing ${{ github.event.inputs.module }} + + steps: + - name: Log workflow parameters + env: + WORKFLOW_PARAMETERS: ${{ toJSON(github.event.inputs) }} + run: echo "$WORKFLOW_PARAMETERS" + test-module: name: Test on Node.js ${{ matrix.node-version }} and ${{ matrix.os }} From 3660b3eefc1fc0d39b19f9d132625903608842d2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C3=ABl=20Zasso?= Date: Fri, 5 Mar 2021 12:18:20 +0100 Subject: [PATCH 3/5] fixup! fixup! ci: add a GitHub workflow to test a module with CITGM --- .github/workflows/test-module.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/test-module.yml b/.github/workflows/test-module.yml index 9b6d95dbf..43c84c6a2 100644 --- a/.github/workflows/test-module.yml +++ b/.github/workflows/test-module.yml @@ -19,6 +19,8 @@ jobs: show-parameters: name: Testing ${{ github.event.inputs.module }} + runs-on: ubuntu-latest + steps: - name: Log workflow parameters env: From 2e3c18d7c24905283347e38a35b0459ddb73753c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C3=ABl=20Zasso?= Date: Fri, 5 Mar 2021 12:19:25 +0100 Subject: [PATCH 4/5] fixup! fixup! fixup! ci: add a GitHub workflow to test a module with CITGM --- .github/workflows/test-module.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/test-module.yml b/.github/workflows/test-module.yml index 43c84c6a2..b954373cf 100644 --- a/.github/workflows/test-module.yml +++ b/.github/workflows/test-module.yml @@ -17,7 +17,7 @@ on: jobs: show-parameters: - name: Testing ${{ github.event.inputs.module }} + name: Parameters for testing "${{ github.event.inputs.module }}" runs-on: ubuntu-latest From d9504b4f72e81443a3f23844dcc6a28583f44744 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C3=ABl=20Zasso?= Date: Fri, 5 Mar 2021 21:20:27 +0100 Subject: [PATCH 5/5] fixup! fixup! fixup! fixup! ci: add a GitHub workflow to test a module with CITGM --- .github/workflows/nodejs.yml | 3 +-- .github/workflows/test-module.yml | 2 -- 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/.github/workflows/nodejs.yml b/.github/workflows/nodejs.yml index e18a87b5c..e5a5fe00a 100644 --- a/.github/workflows/nodejs.yml +++ b/.github/workflows/nodejs.yml @@ -28,8 +28,6 @@ jobs: run: npm run lint test: - name: Test on Node.js ${{ matrix.node-version }} and ${{ matrix.os }} - strategy: fail-fast: false matrix: @@ -41,6 +39,7 @@ jobs: - 10.x - 12.x - 14.x + - 15.x runs-on: ${{ matrix.os }} diff --git a/.github/workflows/test-module.yml b/.github/workflows/test-module.yml index b954373cf..2d9074e0c 100644 --- a/.github/workflows/test-module.yml +++ b/.github/workflows/test-module.yml @@ -28,8 +28,6 @@ jobs: run: echo "$WORKFLOW_PARAMETERS" test-module: - name: Test on Node.js ${{ matrix.node-version }} and ${{ matrix.os }} - strategy: fail-fast: false matrix: