Skip to content

Commit

Permalink
use pnpm
Browse files Browse the repository at this point in the history
  • Loading branch information
elliotBraem committed Oct 2, 2024
1 parent 9ee3ff3 commit 08442f2
Show file tree
Hide file tree
Showing 9 changed files with 12,917 additions and 71 deletions.
70 changes: 70 additions & 0 deletions .github/continuous-integration.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,70 @@
name: CI
on:
pull_request:
push:
branches:
- main

jobs:
prettier:
name: Prettier
runs-on: ubuntu-latest
permissions:
# Give the default GITHUB_TOKEN write permission to commit and push the
# added or changed files to the repository.
contents: write
strategy:
matrix:
node-version: [20]
steps:
- uses: actions/checkout@v4
- name: Install pnpm
uses: pnpm/action-setup@v4
with:
version: 9
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
cache: "pnpm"
- name: Install dependencies
run: pnpm install --frozen-lockfile
- name: Run prettier
run: pnpm run fmt
- name: Commit changes
uses: stefanzweifel/git-auto-commit-action@v5
with:
commit_message: Apply formatting changes
branch: ${{ github.head_ref }}

playwright-tests:
name: Playwright tests
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [20]
steps:
- uses: actions/checkout@v4
- name: Install pnpm
uses: pnpm/action-setup@v4
with:
version: 9
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
cache: "pnpm"
- uses: actions/cache@v3
id: playwright-cache
with:
path: |
~/.cache/ms-playwright
key: ${{ runner.os }}-playwright-${{ hashFiles('**/pnpm-lock.yaml') }}
- name: Install dependencies
run: pnpm install --frozen-lockfile
- name: Install Playwright dependencies
run: |
pnpm exec playwright install --with-deps
- name: Run tests
run: |
pnpm exec playwright test
14 changes: 10 additions & 4 deletions .github/workflows/npm-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,14 +11,20 @@ jobs:
contents: read
packages: write
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
- uses: actions/checkout@v4
- name: Install pnpm
uses: pnpm/action-setup@v4
with:
version: 9
- name: Use Node.js 20
uses: actions/setup-node@v4
with:
node-version: 20
cache: "pnpm"
registry-url: "https://registry.npmjs.org"
- run: yarn install
- run: pnpm install
- name: Prepare the release
run: yarn prepare:release devs.near ${{secrets.DEVS_SIGNER_PRIVATE_KEY}}
run: pnpm prepare:release devs.near ${{secrets.DEVS_SIGNER_PRIVATE_KEY}}
- name: Commit and push updated package.json (nearfs cid)
run: |
git config --local user.email "[email protected]"
Expand Down
53 changes: 0 additions & 53 deletions .github/workflows/test.yml

This file was deleted.

4 changes: 2 additions & 2 deletions .gitpod.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,5 @@
# Learn more from ready-to-use templates: https://www.gitpod.io/docs/introduction/getting-started/quickstart

tasks:
- init: yarn install && yarn run build
command: yarn run start
- init: pnpm install && pnpm run build
command: pnpm run dev
Loading

0 comments on commit 08442f2

Please sign in to comment.