From bed858117bada5d0a3fd0c7ab4d47ca1353e6944 Mon Sep 17 00:00:00 2001 From: DJ2LS Date: Mon, 20 Nov 2023 20:18:57 +0100 Subject: [PATCH] updated tests, added gui test --- .github/workflows/gui_tests.yml | 39 +++++++++++++++++++++++++++++++ .github/workflows/modem_tests.yml | 1 + 2 files changed, 40 insertions(+) create mode 100644 .github/workflows/gui_tests.yml diff --git a/.github/workflows/gui_tests.yml b/.github/workflows/gui_tests.yml new file mode 100644 index 00000000..3453cd42 --- /dev/null +++ b/.github/workflows/gui_tests.yml @@ -0,0 +1,39 @@ +name: Modem tests + +on: [push] + +jobs: + build: + # The CMake configure and build commands are platform-agnostic and should work equally + # well on Windows or Mac. You can convert this to a matrix build if you need + # cross-platform coverage. + # See: https://docs.github.com/en/free-pro-team@latest/actions/learn-github-actions/managing-complex-workflows#using-a-build-matrix + runs-on: ubuntu-latest + strategy: + # By default, GitHub will maximize the number of jobs run in parallel + # depending on the available runners on GitHub-hosted virtual machines. + # max-parallel: 8 + fail-fast: false + matrix: + include: + - node-version: "14" + - node-version: "16" + - node-version: "18" + - node-version: "20" + + steps: + - uses: actions/checkout@v4 + - name: Install Node.js, NPM and Yarn + uses: actions/setup-node@v4 + with: + node-version: ${{ matrix.node-version }} + + - name: Install dependencies + working-directory: gui + run: | + npm i + + - name: GUI Test + working-directory: gui + run: | + npm run test \ No newline at end of file diff --git a/.github/workflows/modem_tests.yml b/.github/workflows/modem_tests.yml index a4a5d996..db75cb22 100644 --- a/.github/workflows/modem_tests.yml +++ b/.github/workflows/modem_tests.yml @@ -53,6 +53,7 @@ jobs: - name: run config tests shell: bash + working-directory: modem run: | python3 tests/test_config.py