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
15 changes: 0 additions & 15 deletions .eslintrc.cjs

This file was deleted.

28 changes: 28 additions & 0 deletions .github/actions/install/action.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: "Install Dependencies"
description: "Install cached dependencies"

runs:
using: "composite"
steps:
- uses: pnpm/action-setup@v3
with:
version: 9
run_install: false

- uses: actions/setup-node@v4
with:
node-version: '20'
cache: 'pnpm'

- name: Restore node_modules cache
uses: actions/cache@v4
id: pnpm-cache
with:
path: '**/node_modules'
key: ${{ runner.os }}-pnpm-${{ hashFiles('**/pnpm-lock.yaml') }}
restore-keys: |
${{ runner.os }}-pnpm-

- name: Install dependencies
shell: bash
run: pnpm install --frozen-lockfile
23 changes: 7 additions & 16 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -1,34 +1,25 @@
name: Release

on:
push:
branches:
- master
- next
- beta

jobs:
release:
runs-on: ubuntu-18.04
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 16
cache: yarn
- uses: actions/cache@v3
id: yarn-cache
with:
path: node_modules
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
restore-keys: ${{ runner.os }}-yarn-
- uses: actions/checkout@v4

- name: Install dependencies
run: yarn install --frozen-lockfile
- uses: ./.github/actions/install

- name: Test
run: yarn test
run: pnpm run test

- name: Build
run: yarn build
run: pnpm run build

- name: Release
env:
Expand Down
53 changes: 17 additions & 36 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -1,61 +1,42 @@
name: Test & Build

on: [pull_request]

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: ${{ github.ref != 'refs/heads/main' }}

jobs:
test:
runs-on: ubuntu-18.04
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 16
cache: yarn
- uses: actions/cache@v3
id: yarn-cache
with:
path: node_modules
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
restore-keys: ${{ runner.os }}-yarn-
- uses: actions/checkout@v4

- name: Install dependencies
run: yarn install --frozen-lockfile
- uses: ./.github/actions/install

- name: Test with Coverage
run: yarn coverage
run: pnpm run coverage

- name: ESLint
run: yarn eslint
run: pnpm run lint

- name: Report Coverage
uses: coverallsapp/github-action@master
uses: coverallsapp/github-action@v2
with:
github-token: ${{ secrets.GITHUB_TOKEN }}

build:
runs-on: ubuntu-18.04
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 16
cache: yarn
- uses: actions/cache@v3
id: yarn-cache
with:
path: '**/node_modules'
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
restore-keys: ${{ runner.os }}-yarn-
- uses: actions/checkout@v4

- name: Install dependencies
run: yarn install --frozen-lockfile --prefer-offline
- uses: ./.github/actions/install

- name: Build Dist
run: yarn build
run: pnpm run build

- name: Bundlewatch
run: npx bundlewatch

- name: Build Docs
run: |
cd docs
yarn install --frozen-lockfile --prefer-offline
yarn build
run: pnpm run build:docs
Binary file added docs/.data/content/contents.sqlite
Binary file not shown.
1 change: 1 addition & 0 deletions docs/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,5 @@ node_modules
.cache
.output
.env
.data
dist
Loading
Loading