Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
36 changes: 24 additions & 12 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,18 +16,22 @@ jobs:
steps:
- name: Checkout code
uses: actions/checkout@v6
- name: Install pnpm
uses: pnpm/action-setup@v6
with:
standalone: true
- name: Install node
id: node
uses: actions/setup-node@v6
with:
node-version: lts/*
cache: npm
cache: pnpm
- name: Install packages (node@${{ steps.node.outputs.node-version }})
run: npm ci
run: pnpm install --frozen-lockfile
- name: Run build
run: npm run @ci:build
run: pnpm run @ci:build
- name: Run lint
run: npm run @ci:lint
run: pnpm run @ci:lint
test:
runs-on: ${{ matrix.os }}
name: "test: node ${{ matrix.node }} on ${{ matrix.os }}"
Expand All @@ -39,18 +43,22 @@ jobs:
steps:
- name: Checkout code
uses: actions/checkout@v6
- name: Install pnpm
uses: pnpm/action-setup@v6
with:
standalone: true
- name: Install node
id: node
uses: actions/setup-node@v6
with:
node-version: ${{ matrix.node }}
cache: npm
cache: pnpm
- name: Install packages (node@${{ steps.node.outputs.node-version }})
run: npm ci
run: pnpm install --frozen-lockfile
- name: Run tests
run: npm run @ci:test
run: pnpm run @ci:test
- name: Report coverage
uses: codecov/codecov-action@v6
uses: codecov/codecov-action@v7
with:
token: ${{ secrets.CODECOV_TOKEN }}
slug: marko-js/testing-library
Expand All @@ -65,19 +73,23 @@ jobs:
steps:
- name: Checkout code
uses: actions/checkout@v6
- name: Install pnpm
uses: pnpm/action-setup@v6
with:
standalone: true
- name: Install node
id: node
uses: actions/setup-node@v6
with:
node-version: lts/*
cache: npm
cache: pnpm
- name: Install packages (node@${{ steps.node.outputs.node-version }})
run: npm ci
run: pnpm install --frozen-lockfile
- name: Run release
uses: changesets/action@v1
with:
version: npm run @ci:version
publish: npm run @ci:release
version: pnpm run @ci:version
publish: pnpm run @ci:release
commit: "[ci] release"
title: "[ci] release"
env:
Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,4 @@ coverage
dist
node_modules
npm-debug.log
yarn.lock
2 changes: 1 addition & 1 deletion .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -1 +1 @@
npm exec lint-staged
pnpm exec lint-staged
1 change: 1 addition & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,4 @@ package-lock.json
coverage
dist
__snapshots__
pnpm-lock.yaml
Loading