Skip to content

Bump the actions group with 2 updates #296

Bump the actions group with 2 updates

Bump the actions group with 2 updates #296

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@1d0ff469b7ec7b3cb9d8673fde0c81c44821de2a # 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@4cec3d8aa04e39d1a68397de0c4cd6fb9dce8ec1 # actions/[email protected]
with:
name: ui-test
path: ui/test-report/index.html