Skip to content

feat: GitHub workflows update (#9) #17

feat: GitHub workflows update (#9)

feat: GitHub workflows update (#9) #17

Workflow file for this run

name: Build
on:
push:
branches: ['main']
paths-ignore:
- '!.vscode/**'
pull_request:
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
steps:
- uses: actions/checkout@v4
- name: Setup Node
uses: actions/setup-node@v4
with:
node-version: lts/*
cache: "npm"
- name: Install dependencies
run: npm ci
- name: Test
run: |
if [ -f "package.json" ] && grep -q '"test"' package.json; then
npm test
else
echo "No test script defined, skipping tests."
fi
- name: Build
run: npm run build