Skip to content

Commit

Permalink
Merge branch 'release/2023.2.0'
Browse files Browse the repository at this point in the history
  • Loading branch information
voluntas committed Dec 12, 2023
2 parents 7f50dfb + 47f6645 commit 40aab72
Show file tree
Hide file tree
Showing 63 changed files with 3,924 additions and 23,621 deletions.
29 changes: 17 additions & 12 deletions .github/renovate.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,28 +8,33 @@
":prConcurrentLimit10",
"group:recommended",
"group:allNonMajor",
"schedule:weekly",
"schedule:weekly"
],
"dependencyDashboard": false,
"packageRules": [
{
"matchUpdateTypes": ["minor", "patch", "pin", "digest"],
"matchUpdateTypes": [
"minor",
"patch",
"pin",
"digest"
],
"platformAutomerge": true,
"automerge": true
},
{
"matchUpdateTypes": ["minor", "patch", "pin", "digest"],
"matchPackagePatterns": ["eslint"],
"groupName": "eslint",
"platformAutomerge": true,
"automerge": true
},
{
"matchUpdateTypes": ["minor", "patch", "pin", "digest"],
"matchPackagePatterns": ["rollup"],
"matchUpdateTypes": [
"minor",
"patch",
"pin",
"digest"
],
"matchPackagePatterns": [
"rollup"
],
"groupName": "rollup",
"platformAutomerge": true,
"automerge": true
}
]
}
}
36 changes: 36 additions & 0 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
name: ci

on:
push:
paths-ignore:
- "**.md"
- "LICENSE"
- "NOTICE"

jobs:
test:
runs-on: ubuntu-latest
strategy:
matrix:
node: ["18", "20", "21"]
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node }}
- uses: pnpm/action-setup@v2
with:
version: 8
- run: pnpm --version
- run: pnpm install
- run: pnpm run build
- run: pnpm run lint
- run: pnpm run test
- name: Slack Notification
if: failure()
uses: rtCamp/action-slack-notify@v2
env:
SLACK_CHANNEL: sora-js-sdk
SLACK_COLOR: danger
SLACK_TITLE: Failure test
SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK }}
2 changes: 1 addition & 1 deletion .github/workflows/codeql.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ jobs:

steps:
- name: Checkout repository
uses: actions/checkout@v3
uses: actions/checkout@v4

# Initializes the CodeQL tools for scanning.
- name: Initialize CodeQL
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/dependency-review.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,6 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: 'Checkout Repository'
uses: actions/checkout@v3
uses: actions/checkout@v4
- name: 'Dependency Review'
uses: actions/dependency-review-action@v3
18 changes: 10 additions & 8 deletions .github/workflows/deploy-pages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: GitHub Pages Deploy
# Controls when the workflow will run
on:
push:
branches: [ "develop" ]
branches: ["develop"]

# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
Expand All @@ -13,21 +13,23 @@ jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: '18'
cache: npm
- run: npm install
- run: npm run build
node-version: "20"
- uses: pnpm/action-setup@v2
with:
version: 8
- run: pnpm install
- run: pnpm run build
- name: Prepare static files
run: |
mkdir _site/
cp dist/sora.js _site/
cp example/check.html _site/
cp example/sw.js _site/
- name: Upload files
uses: actions/upload-pages-artifact@v1
uses: actions/upload-pages-artifact@v2
- name: Slack Notification
if: failure()
uses: rtCamp/action-slack-notify@v2
Expand Down
37 changes: 0 additions & 37 deletions .github/workflows/test.yaml

This file was deleted.

1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,4 @@ packages/e2ee/dist
packages/e2ee/_worker
apidoc/
.log/
dist/
3 changes: 3 additions & 0 deletions .vscode/extensions.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"recommendations": ["biomejs.biome"]
}
20 changes: 20 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
{
"editor.formatOnSave": true,
"editor.defaultFormatter": "esbenp.prettier-vscode",
"[javascript]": {
"editor.defaultFormatter": "biomejs.biome"
},
"[javascriptreact]": {
"editor.defaultFormatter": "biomejs.biome"
},
"[typescript]": {
"editor.defaultFormatter": "biomejs.biome"
},
"[typescriptreact]": {
"editor.defaultFormatter": "biomejs.biome"
},
"editor.codeActionsOnSave": {
"quickfix.biome": "explicit",
"source.organizeImports.biome": "explicit"
}
}
Loading

0 comments on commit 40aab72

Please sign in to comment.