Skip to content

Commit

Permalink
Merge branch 'main' into monorepo
Browse files Browse the repository at this point in the history
  • Loading branch information
neoncitylights committed Dec 16, 2023
2 parents ef94fd9 + 0b5a9b2 commit 88e90e3
Show file tree
Hide file tree
Showing 12 changed files with 2,442 additions and 1,138 deletions.
108 changes: 0 additions & 108 deletions .codesandbox/tasks.json

This file was deleted.

14 changes: 9 additions & 5 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,19 +8,23 @@ updates:
- package-ecosystem: "npm"
directory: "/"
schedule:
interval: "monthly"
interval: "weekly"
commit-message:
prefix: "chore(deps/npm):"
labels:
- "t-dependencies"
- "pkg-npm"
groups:
typescript-eslint:
typescript:
patterns:
- "@typescript-eslint/*"
- "eslint"
- "typescript"
- "typedoc"
- "@types/node"
lint:
patterns:
- "eslint*"
- "markdownlint*"
- "publint"
vite:
patterns:
- "vite"
Expand All @@ -32,7 +36,7 @@ updates:
- package-ecosystem: "github-actions"
directory: "/"
schedule:
interval: "monthly"
interval: "daily"
commit-message:
prefix: "chore(deps/actions):"
labels:
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/codeql.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ jobs:

# Initializes the CodeQL tools for scanning.
- name: Initialize CodeQL
uses: github/codeql-action/init@v2
uses: github/codeql-action/init@v3
with:
languages: ${{ matrix.language }}
# If you wish to specify custom queries, you can do so here or in a config file.
Expand All @@ -62,7 +62,7 @@ jobs:
# Autobuild attempts to build any compiled languages (C/C++, C#, Go, or Java).
# If this step fails, then you should remove it and run the build manually (see below)
- name: Autobuild
uses: github/codeql-action/autobuild@v2
uses: github/codeql-action/autobuild@v3

# ℹ️ Command-line programs to run using the OS shell.
# 📚 See https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#jobsjob_idstepsrun
Expand All @@ -75,6 +75,6 @@ jobs:
# ./location_of_script_within_repo/buildscript.sh

- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v2
uses: github/codeql-action/analyze@v3
with:
category: "/language:${{matrix.language}}"
56 changes: 34 additions & 22 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ on:

jobs:
build:
name: build (Node v@${{ matrix.node-version }})
runs-on: ubuntu-latest
strategy:
matrix:
Expand All @@ -17,7 +18,7 @@ jobs:
- name: Checkout repository
uses: actions/checkout@v4
- name: Install Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
cache: 'npm'
Expand All @@ -27,20 +28,43 @@ jobs:
run: npm run build

lint:
name: lint (${{ matrix.tool }})
runs-on: ubuntu-latest
needs: build
strategy:
matrix:
include:
- tool: ESLint
npm-cmd-suffix: es
npm-cmd-env: |
npm run lint:es-env
- tool: Markdownlint
npm-cmd-suffix: md
npm-cmd-env: |
node --version
npm --version
npm run lint:md-env
- tool: publint
npm-cmd-suffix: pub
npm-cmd-env: |
node --version
npm --version
npm run lint:pub-env
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Install Node.js
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
node-version: latest
cache: 'npm'
- name: Install dependencies
run: npm ci
- name: Lint
run: npm run lint
- name: Print environment info
run: |
${{ matrix.npm-cmd-env }}
- name: Lint with ${{ matrix.tool }}
run: npm run lint:${{ matrix.npm-cmd-suffix }}

test:
runs-on: ubuntu-latest
Expand All @@ -49,7 +73,7 @@ jobs:
- name: Checkout repository
uses: actions/checkout@v4
- name: Install Node.js
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
node-version: latest
cache: 'npm'
Expand All @@ -71,7 +95,7 @@ jobs:
- name: Checkout repository
uses: actions/checkout@v4
- name: Install Node.js
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
node-version: latest
cache: 'npm'
Expand All @@ -86,14 +110,14 @@ jobs:
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

is-publishable:
pkg-dry-run:
runs-on: ubuntu-latest
needs: build
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Install Node.js
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
node-version: latest
cache: 'npm'
Expand All @@ -107,25 +131,13 @@ jobs:

ci-success:
runs-on: ubuntu-latest
if: ${{ success() && github.event_name == 'push' }}
if: ${{ success() }}
needs:
- build
- lint
- test
- docs
- is-publishable
steps:
- name: ✅ CI succeeded
run: exit 0

ci-success-pr:
runs-on: ubuntu-latest
if: ${{ success() && github.event_name == 'pull_request' }}
needs:
- build
- lint
- test
- is-publishable
- pkg-dry-run
steps:
- name: ✅ CI succeeded
run: exit 0
Loading

0 comments on commit 88e90e3

Please sign in to comment.