review with mmatur #1
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Test Unit | ||
on: | ||
pull_request: | ||
branches: | ||
- '*' | ||
paths-ignore: | ||
- 'docs/**' | ||
- '**.md' | ||
env: | ||
GO_VERSION: '1.22' | ||
jobs: | ||
test-unit: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Check out code | ||
uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: 0 | ||
- name: Set up Go ${{ env.GO_VERSION }} | ||
uses: actions/setup-go@v5 | ||
with: | ||
go-version: ${{ env.GO_VERSION }} | ||
- name: Avoid generating webui | ||
run: touch webui/static/index.html | ||
- name: Tests | ||
run: make test-unit | ||
test-ui-unit: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Check out code | ||
uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: 0 | ||
- name: Set up Node.js ${{ env.NODE_VERSION }} | ||
uses: actions/setup-node@v4 | ||
with: | ||
node-version-file: webui/.nvmrc | ||
cache: 'yarn' | ||
cache-dependency-path: webui/yarn.lock | ||
- name: UI unit tests | ||
run: | | ||
yarn --cwd webui install | ||
yarn --cwd webui test:unit:ci |