Skip to content

Update README.md

Update README.md #250

Workflow file for this run

# Copyright (c) 2023 Robert Bosch GmbH and Microsoft Corporation
#
# This program and the accompanying materials are made available under the
# terms of the Apache License, Version 2.0 which is available at
# https://www.apache.org/licenses/LICENSE-2.0.
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
# License for the specific language governing permissions and limitations
# under the License.
#
# SPDX-License-Identifier: Apache-2.0
name: CI
concurrency:
group: ${{ github.ref }}
cancel-in-progress: true
on:
workflow_dispatch:
push:
# Run only on branches/commits and not tags
branches:
- main
pull_request:
branches:
- main
jobs:
lint-job:
name: "Run linters"
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Run Linters
uses: ./.github/actions/pre-commit-action
cli-tests:
strategy:
matrix:
os: ["ubuntu-latest"]
node_version: [lts/-1, lts/*, latest]
fail-fast: false
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node_version }}
cache: npm
- run: npm install
- run: npm run build
- run: npm run coverage
system-tests:
name: "Run system tests for ${{ matrix.language }}"
runs-on: ubuntu-latest
container: ghcr.io/eclipse-velocitas/devcontainer-base-images/${{ matrix.language }}:latest
strategy:
matrix:
language: ["python", "cpp"]
fail-fast: false
steps:
- uses: actions/checkout@v3
with:
ref: ${{ inputs.ref }}
- uses: actions/setup-node@v3
with:
node-version: 18
- name: Install dependencies
run: |
apt-get update && apt-get install build-essential -y
npm install
- name: Compile EXE
run: TARGET=node18-linux-x64 ARCH=x64 npm run compile-exe
- name: Run system test
run: ARCH=x64 npm run system-test