Skip to content
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
44 changes: 0 additions & 44 deletions .circleci/config.yml

This file was deleted.

47 changes: 47 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
name: CI

on:
push:
branches: ['**']
tags: ['**']
pull_request:
workflow_dispatch:

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

permissions:
contents: read

jobs:
test:
name: Test (Node ${{ matrix.node-version }})
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
node-version: [18, 20]
steps:
- uses: actions/checkout@v4

- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
cache: npm
cache-dependency-path: package-lock.json

- name: Install dependencies
run: npm ci

- name: Run tests
run: npm test

- name: Upload coverage to Coveralls
if: success() && matrix.node-version == 20
uses: coverallsapp/github-action@v2
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
path-to-lcov: coverage/lcov.info
continue-on-error: true
55 changes: 33 additions & 22 deletions .github/workflows/push.yml
Original file line number Diff line number Diff line change
@@ -1,26 +1,37 @@
on: push
name: Deploy to GitHub Pages

on:
push:
branches: [master]

jobs:
filterBranch:
name: Filter branch
deploy-docs:
name: Deploy docs
runs-on: ubuntu-latest
permissions:
contents: read
steps:
- uses: actions/checkout@master
- name: Filter branch
uses: actions/bin/filter@master
with:
args: branch master
- name: Install
uses: actions/npm@master
with:
args: install --prefix ./website
- name: Update version
uses: clay/docusaurus-github-action@master
with:
args: version
- name: Build and push docs
uses: clay/docusaurus-github-action@master
env:
DEPLOY_SSH_KEY: ${{ secrets.DEPLOY_SSH_KEY }}
with:
args: deploy
- uses: actions/checkout@v4
with:
fetch-depth: 0

- name: Use Node.js
uses: actions/setup-node@v4
with:
node-version: '16'

- name: Install website dependencies
run: npm install
working-directory: website

- name: Update Docusaurus version
uses: clay/docusaurus-github-action@f3ea5271a51c1f06e456d55e490993985210c02b
with:
args: version

- name: Build and publish to gh-pages
uses: clay/docusaurus-github-action@f3ea5271a51c1f06e456d55e490993985210c02b
env:
DEPLOY_SSH_KEY: ${{ secrets.DEPLOY_SSH_KEY }}
with:
args: deploy
Loading