Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ci: use common JS setup action #4

Merged
merged 1 commit into from
Oct 8, 2023
Merged
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
28 changes: 4 additions & 24 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,19 +22,10 @@ jobs:
- name: Checkout source
uses: actions/checkout@v3

- name: Install pnpm
uses: pnpm/action-setup@c3b53f6a16e57305370b4ae5a540c2077a1d50dd
with:
run_install: true

- name: Install Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
- name: Install Node.js and dependencies
uses: mcous/js/actions/setup@main
with:
node-version: ${{ matrix.node-version }}
cache: pnpm

- name: Install dependencies
run: pnpm install

- name: Run tests
run: pnpm coverage
Expand Down Expand Up @@ -63,19 +54,8 @@ jobs:
- name: Checkout source
uses: actions/checkout@v3

- name: Install pnpm
uses: pnpm/action-setup@c3b53f6a16e57305370b4ae5a540c2077a1d50dd
with:
run_install: true

- name: Install Node.js
uses: actions/setup-node@v3
with:
node-version: '18'
cache: pnpm

- name: Install dependencies
run: pnpm install
- name: Install Node.js and dependencies
uses: mcous/js/actions/setup@main

- name: Build and check
run: pnpm build-and-check
Expand Down