Skip to content

test: add mock for nitro-graphql/native and update vitest configurati… #288

test: add mock for nitro-graphql/native and update vitest configurati…

test: add mock for nitro-graphql/native and update vitest configurati… #288

Workflow file for this run

name: CI
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
permissions:
contents: read
pull-requests: write
on:
push:
branches:
- main
paths-ignore:
- 'docs/**'
pull_request:
branches:
- main
paths-ignore:
- 'docs/**'
jobs:
build-test:
runs-on: ${{ matrix.os }}
permissions:
# Required to checkout the code
contents: read
# Required to put a comment into the pull-request
pull-requests: write
strategy:
matrix:
os: [ubuntu-latest]
steps:
- uses: actions/checkout@v5
- run: corepack enable
- uses: actions/setup-node@v6
with:
node-version: lts/*
cache: pnpm
- name: 📦 Install dependencies
run: pnpm install --frozen-lockfile
- name: 👀 Lint
run: pnpm lint
- name: 🧪 Test
run: pnpm test:run --coverage
- name: 📊 Upload coverage to Codecov
uses: codecov/codecov-action@v5
with:
files: ./coverage/coverage-final.json
fail_ci_if_error: false
- name: 🚀 Build
run: pnpm build