Skip to content

Updating deps

Updating deps #254

Workflow file for this run

name: UI Unit Tests
on:
pull_request:
paths:
- "ui/**"
- ".github/workflows/test_ui.yml"
jobs:
test:
runs-on: artemis-ui-test-runner-4
env:
UI_PATH: ./ui
HADOLINT_URL: https://github.com/hadolint/hadolint/releases/download/v2.10.0/hadolint-Linux-x86_64
NPM_VERSION: 10
steps:
- name: Checkout the code
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # actions/[email protected]
- name: Setup node from node version file
uses: actions/setup-node@39370e3970a6d050c480ffad4ff0ed4d3fdee5af # actions/[email protected]
with:
node-version-file: "${{ env.UI_PATH }}/.nvmrc"
- uses: hashicorp/setup-terraform@b9cd54a3c349d3f38e8881555d616ced269862dd # hashicorp/[email protected]
- name: Set up the npm version
run: npm install --global npm@$NPM_VERSION
- name: Install npm packages
run: make -C $UI_PATH install
- name: Install hadolinter and check sha
run: wget --quiet -O ./hadolint $HADOLINT_URL && sha512sum -c hadolint.sha512 && chmod 0766 ./hadolint
working-directory: ${{ env.UI_PATH }}
- name: Run precommit checks (linting & testing etc)
run: make -C $UI_PATH precommit
- name: Save test results
uses: actions/upload-artifact@b4b15b8c7c6ac21ea08fcf65892d2ee8f75cf882 # actions/[email protected]
with:
name: ui-test
path: ui/test-report/index.html