Skip to content

Add Github Actions

Add Github Actions #2

name: UI Wiki Frontend
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [20.x]
steps:
- uses: actions/checkout@v4
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
cache: 'npm'
working-directory: frontend

Check failure on line 21 in .github/workflows/frontend.node.js.yml

View workflow run for this annotation

GitHub Actions / UI Wiki Frontend

Invalid workflow file

The workflow is not valid. .github/workflows/frontend.node.js.yml (Line: 21, Col: 7): Unexpected value 'working-directory'
- run: npm ci
- run: npm run build --if-present
- run: npm test