Skip to content

feat: add command to create query file from examples extracted from t… #20

feat: add command to create query file from examples extracted from t…

feat: add command to create query file from examples extracted from t… #20

Workflow file for this run

name: Tests
on:
workflow_dispatch:
push:
tags:
- 'v*.*.*'
branches: [main]
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
test:
name: ✅ Run tests
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, macos-latest]
# os: [ubuntu-latest, macos-latest, windows-latest]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v6
- name: Setup NodeJS
uses: actions/setup-node@v6
with:
node-version: 24
registry-url: 'https://registry.npmjs.org'
cache: npm
cache-dependency-path: './package.json'
- run: npm ci
- name: Package
run: npm run package
- name: Run headless test
uses: GabrielBB/xvfb-action@v1.0
with:
run: npm test
changelog:
name: 🏔️ Generate changelog for GitHub release
runs-on: ubuntu-latest
if: startsWith(github.ref, 'refs/tags/')
outputs:
release_body: ${{ steps.git-cliff.outputs.content }}
steps:
- name: Checkout
uses: actions/checkout@v6
with:
fetch-depth: 0
- name: Generate a changelog
uses: orhun/git-cliff-action@main
id: git-cliff
with:
config: github
args: -vv --latest --strip header
env:
OUTPUT: CHANGES.md
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Release
uses: softprops/action-gh-release@v2.2.1
with:
body_path: CHANGES.md