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

Setup CI for better PR visibility #17

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
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
23 changes: 23 additions & 0 deletions .github/actions/pnpm/action.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
name: Setup node, pnpm, and cache
description: Setup node and install dependencies using pnpm
runs:
using: "composite"
steps:
- uses: volta-cli/action@v1
# minimum supported Node
with:
node-version: 18.x
- name: Cache pnpm modules
uses: actions/cache@v3
with:
path: |
~/.pnpm-store
'node_modules/'
'node_modules/.cache'
key: ${{ runner.os }}-pnpm-${{ hashFiles('**/pnpm-lock.yaml') }}
restore-keys: |
${{ runner.os }}-pnpm-
- uses: pnpm/[email protected]
with:
version: 7.17.1
run_install: true
28 changes: 28 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: CI
on:
pull_request:
push:
branches: [main]

jobs:
install_dependencies:
name: Install Dependencies
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
- uses: volta-cli/action@v1
- uses: ./.github/actions/pnpm


docs_build:
name: "Build Docs"
runs-on: ubuntu-latest
needs: [install_dependencies]

steps:
- uses: actions/checkout@v3
- uses: ./.github/actions/pnpm
- run: pnpm docs:build


56 changes: 0 additions & 56 deletions .github/workflows/docs.yml

This file was deleted.