Skip to content

CI: patch test

CI: patch test #95

Workflow file for this run

name: Run Tests
on:
push:
branches:
- main
permissions:
contents: write
pull-requests: write
jobs:
check:
name: Check Resource Status
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: 20
registry-url: 'https://registry.npmjs.org/'
- name: Setup pnpm
uses: pnpm/action-setup@v2
with:
version: 10
# - name: Patch example app package.json
# run: |
# jq '.scripts.prepare = "musket postinstall" | .scripts.postinstall = "build"' \
# examples/basic-app/package.json > tmp.$$.json
# mv tmp.$$.json examples/basic-app/package.json
# cat examples/basic-app/package.json
- name: Patch example app package.json
run: |
jq '.scripts.postinstall = "mosket postinstall"' \
examples/basic-app/package.json > tmp.$$.json
mv tmp.$$.json examples/basic-app/package.json
cat examples/basic-app/package.json
- name: Install dependencies
run: pnpm install --frozen-lockfile
- name: Run tests and generate code coverage
run: pnpm coverage
- name: Upload coverage reports to Codecov
uses: codecov/codecov-action@v5
with:
token: ${{ secrets.CODECOV_TOKEN }}
slug: h3ravel/framework