Skip to content

Commit

Permalink
Merge branch 'master' into mp/clone_performance
Browse files Browse the repository at this point in the history
  • Loading branch information
puehringer committed Sep 5, 2023
2 parents c009ab4 + 09a5207 commit 422688d
Show file tree
Hide file tree
Showing 232 changed files with 34,882 additions and 2,650 deletions.
3 changes: 2 additions & 1 deletion .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@ module.exports = {
'plugin:react/recommended',
'plugin:@typescript-eslint/recommended',
'prettier',
'plugin:prettier/recommended'
'plugin:prettier/recommended',
'plugin:jsx-a11y/recommended',
],
env: {
browser: true,
Expand Down
4 changes: 2 additions & 2 deletions .github/ISSUE_TEMPLATE/config.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
blank_issues_enabled: false
contact_links:
- name: Question
url: https://www.biostars.org/tag/gosling.js/
about: Please ask questions on BioStars (https://www.biostars.org/tag/gosling/) or Stack Overflow (https://stackoverflow.com/tags/gosling).
url: https://github.com/gosling-lang/gosling.js/discussions/new/choose
about: Please ask questions in the Discussions section.
72 changes: 0 additions & 72 deletions .github/workflows/build-and-deploy.yml

This file was deleted.

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

on:
push:
branches:
- master
pull_request:

env:
FORCE_COLOR: "1"

jobs:

Build:
name: Build Editor
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Use Node.js
uses: actions/setup-node@v3
with:
node-version: 16
- run: yarn install
- run: yarn build-editor
env:
NODE_OPTIONS: '--max_old_space_size=4096'

Test:
name: Test
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [14.x, 16.x]
steps:
- uses: actions/checkout@v3
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
- run: yarn install
- run: |
yarn build-types # typecheck
yarn coverage
env:
NODE_OPTIONS: '--max_old_space_size=4096'
- uses: codecov/codecov-action@v1
with:
fail_ci_if_error: true

Lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 16
- run: yarn install
- name: ESLint
run: yarn eslint src/ editor/
- name: Assert schemas are all up to date
run: |
yarn schema
git diff --exit-code
30 changes: 30 additions & 0 deletions .github/workflows/deploy-editor.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: Deploy Editor

on:
push:
branches:
- master

jobs:

deploy:
runs-on: ubuntu-latest
if: github.ref == 'refs/heads/master'
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 16
- run: yarn install
- run: yarn build-editor
env:
NODE_OPTIONS: '--max_old_space_size=8192'
- name: Deploy editor
run: |
git config --global user.name "[email protected]"
git config --global user.email "GitHub Action"
git remote set-url origin https://${ACCESS_TOKEN}@github.com/${REPO}.git
yarn deploy
env:
ACCESS_TOKEN: ${{ secrets.ACCESS_TOKEN }}
REPO: ${{ github.repository }}
40 changes: 0 additions & 40 deletions .github/workflows/publish.yml

This file was deleted.

37 changes: 24 additions & 13 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,20 +6,31 @@ on:
- 'v*'

jobs:
build:
name: Create Release

publish-npm:
name: Publish to npm
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- name: Create Release
id: create_release
uses: actions/create-release@v1
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 16
registry-url: https://registry.npmjs.org/
- run: yarn
- run: yarn build
- run: yarn publish
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

release:
name: Create Release
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
tag_name: ${{ github.ref }}
release_name: ${{ github.ref }}
draft: false
prerelease: false
fetch-depth: 0
- uses: actions/setup-node@v3
with:
node-version: 16
- run: npx changelogithub
env:
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
44 changes: 44 additions & 0 deletions .github/workflows/semantic-pull-request.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
name: Semantic Pull Request

on:
pull_request_target:
types:
- opened
- edited
- synchronize

jobs:
main:
name: Validate PR title
runs-on: ubuntu-latest
steps:
- uses: amannn/action-semantic-pull-request@v5
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
# Configure which types are allowed (newline-delimited).
types: |
feat
fix
ci
chore
docs
refactor
test
# Configure which scopes are allowed.
scopes: |
core
track
data-fetcher
api
editor
# Configure if a scope must always be provided.
requireScope: true
# Configure which scopes are disallowed in PR titles (newline-delimited).
# Anything but `feat` and `fix`
disallowScopes: |
ci
chore
docs
refactor
test
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
/lib
/bin
.vscode
.idea
.pnp.js
.DS_Store
.env.local
Expand Down
Loading

0 comments on commit 422688d

Please sign in to comment.