From 53316d37c6fde2fa93615f3199f2ac651a14fa0c Mon Sep 17 00:00:00 2001 From: Adam Mitz Date: Fri, 29 Mar 2024 14:07:18 -0500 Subject: [PATCH 1/6] Create ci.yml Adding GitHub Actions CI for this repo --- .github/workflows/ci.yml | 38 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) create mode 100644 .github/workflows/ci.yml diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..4d8a49a --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,38 @@ +name: CI +on: + push: + pull_request: + workflow_dispatch: +jobs: + build: + runs-on: ubuntu-22.04 + strategy: + matrix: + node-version: [18.x, 20.x, 21.x] + steps: + - uses: actions/checkout@v3 + - name: Check out ACE_TAO + uses: actions/checkout@v3 + with: + repository: DOCGroup/ACE_TAO + path: ACE_TAO + - name: Check out OpenDDS + uses: actions/checkout@v3 + with: + repository: OpenDDS/OpenDDS + path: OpenDDS + - uses: actions/checkout@v3 + - name: Use Node.js ${{ matrix.node-version }} + uses: actions/setup-node@v3 + with: + node-version: ${{ matrix.node-version }} + cache: 'npm' + - run: npm ci + - run: npm run build --if-present + - name: Test + run: | + export ACE_ROOT=`pwd`/ACE_TAO/ACE + export DDS_ROOT=`pwd`/OpenDDS + cd test + npm ci + ./basic_forward.pl From 4883200902f1a0b52668a7086c3782b480be75e5 Mon Sep 17 00:00:00 2001 From: Adam Mitz Date: Fri, 29 Mar 2024 14:10:15 -0500 Subject: [PATCH 2/6] Fixed typo --- .github/workflows/ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 4d8a49a..008d29b 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -33,6 +33,6 @@ jobs: run: | export ACE_ROOT=`pwd`/ACE_TAO/ACE export DDS_ROOT=`pwd`/OpenDDS - cd test + cd tests npm ci ./basic_forward.pl From c885220ddca3eb4712de3e2db4749ffd23f1ecbf Mon Sep 17 00:00:00 2001 From: Adam Mitz Date: Fri, 29 Mar 2024 14:27:04 -0500 Subject: [PATCH 3/6] Use common GitHub Actions settings from other repos --- .github/workflows/ci.yml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 008d29b..057c526 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -2,11 +2,17 @@ name: CI on: push: pull_request: + schedule: + - cron: '10 0 * * 0' workflow_dispatch: +concurrency: + group: ${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: true jobs: build: runs-on: ubuntu-22.04 strategy: + fail-fast: false matrix: node-version: [18.x, 20.x, 21.x] steps: From 3ce72716b9370183aa406d6a3e189c6bb2b7a156 Mon Sep 17 00:00:00 2001 From: Adam Mitz Date: Fri, 29 Mar 2024 14:32:02 -0500 Subject: [PATCH 4/6] save workspace as artifact --- .github/workflows/ci.yml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 057c526..8d61d9b 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -35,6 +35,11 @@ jobs: cache: 'npm' - run: npm ci - run: npm run build --if-present + - name: upload workspace before test + uses: actions/upload-artifact@v4 + with: + name: ${{ github.job }}-${{ matrix.node-version }} + path: . - name: Test run: | export ACE_ROOT=`pwd`/ACE_TAO/ACE From ffeffe66787dac8f6541878b95292e864ed0ceff Mon Sep 17 00:00:00 2001 From: Adam Mitz Date: Fri, 29 Mar 2024 14:47:22 -0500 Subject: [PATCH 5/6] Fixed checkout actions; updated to v4 --- .github/workflows/ci.yml | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 8d61d9b..419b317 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -16,20 +16,20 @@ jobs: matrix: node-version: [18.x, 20.x, 21.x] steps: - - uses: actions/checkout@v3 + - name: Check out repeater + uses: actions/checkout@v4 - name: Check out ACE_TAO - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: repository: DOCGroup/ACE_TAO path: ACE_TAO - name: Check out OpenDDS - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: repository: OpenDDS/OpenDDS path: OpenDDS - - uses: actions/checkout@v3 - name: Use Node.js ${{ matrix.node-version }} - uses: actions/setup-node@v3 + uses: actions/setup-node@v4 with: node-version: ${{ matrix.node-version }} cache: 'npm' From f641b63858cd5f175d1d192de8f311faa636102b Mon Sep 17 00:00:00 2001 From: Adam Mitz Date: Fri, 29 Mar 2024 14:55:20 -0500 Subject: [PATCH 6/6] Artifact currently unused, comment out --- .github/workflows/ci.yml | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 419b317..520c214 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -35,11 +35,11 @@ jobs: cache: 'npm' - run: npm ci - run: npm run build --if-present - - name: upload workspace before test - uses: actions/upload-artifact@v4 - with: - name: ${{ github.job }}-${{ matrix.node-version }} - path: . +# - name: upload workspace before test +# uses: actions/upload-artifact@v4 +# with: +# name: ${{ github.job }}-${{ matrix.node-version }} +# path: . - name: Test run: | export ACE_ROOT=`pwd`/ACE_TAO/ACE