Skip to content

review with mmatur

review with mmatur #1

Workflow file for this run

name: Test Unit
on:
pull_request:
branches:
- '*'

Check failure on line 6 in .github/workflows/test-unit.yaml

View workflow run for this annotation

GitHub Actions / .github/workflows/test-unit.yaml

Invalid workflow file

You have an error in your yaml syntax on line 6
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