Skip to content

Commit

Permalink
Setup ci
Browse files Browse the repository at this point in the history
  • Loading branch information
NullVoxPopuli committed Sep 22, 2023
1 parent 7581a6f commit 2441695
Show file tree
Hide file tree
Showing 3 changed files with 51 additions and 56 deletions.
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/action-setup@v2.2.2
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.

0 comments on commit 2441695

Please sign in to comment.