Skip to content

feat: initial implementation of setup-vlt GitHub Action #1

feat: initial implementation of setup-vlt GitHub Action

feat: initial implementation of setup-vlt GitHub Action #1

Workflow file for this run

name: CI
on:
push:
branches: [main]
pull_request:
branches: [main]
jobs:
build:
name: Build and Test
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: '20'
cache: 'npm'
- name: Install dependencies
run: npm ci
- name: Lint
run: npm run lint
- name: Format check
run: npm run format -- --check
- name: Build
run: npm run build
- name: Test
run: npm test
- name: Check dist is up to date
run: |
npm run build
if [ "$(git diff --ignore-space-at-eol dist/ | wc -l)" -gt "0" ]; then
echo "Detected uncommitted changes after build. See status below:"
git diff
exit 1
fi
id: diff
- name: Upload dist artifacts
if: failure() && steps.diff.conclusion == 'failure'
uses: actions/upload-artifact@v4
with:
name: dist
path: dist/