From 53316d37c6fde2fa93615f3199f2ac651a14fa0c Mon Sep 17 00:00:00 2001 From: Adam Mitz Date: Fri, 29 Mar 2024 14:07:18 -0500 Subject: [PATCH] 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