mirror of
https://github.com/OutlineFoundation/outline-server.git
synced 2026-05-13 05:52:04 +00:00
* chore: upgrade to lts/hydrogen * update github workflows * fix attempt #1 * ssl, restify upgrade * more openssl options * ah thanks sander, using middleware2 * fix ci * reset package-lock.json * revert middleware2 * fix optional chaining * okay cool tests run, but fail * partially update the node image (i can't find the other one) * Update test.action.sh * Update build.action.sh * Update test.action.sh * Update build.action.sh * Update package.json * Update webpack.config.js * Update webpack.config.js * Update build.action.sh * Update build.action.sh * Update package.json * Update README.md
195 lines
4.2 KiB
YAML
195 lines
4.2 KiB
YAML
name: Build and Test
|
|
|
|
concurrency:
|
|
group: ${{ github.head_ref || github.ref }}
|
|
cancel-in-progress: true
|
|
|
|
on:
|
|
pull_request:
|
|
types:
|
|
- opened
|
|
- synchronize
|
|
push:
|
|
branches:
|
|
- master
|
|
|
|
jobs:
|
|
lint:
|
|
name: Lint
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@v2.3.4
|
|
|
|
- name: Install Node
|
|
uses: actions/setup-node@v3
|
|
with:
|
|
node-version: 18
|
|
cache: npm
|
|
|
|
- name: Install NPM Dependencies
|
|
run: npm ci
|
|
|
|
- name: Lint
|
|
run: npm run lint
|
|
|
|
shadowbox:
|
|
name: Shadowbox
|
|
runs-on: ubuntu-latest
|
|
needs: lint
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@v2.3.4
|
|
|
|
- name: Install Node
|
|
uses: actions/setup-node@v3
|
|
with:
|
|
node-version: 18
|
|
cache: npm
|
|
|
|
- name: Install NPM Dependencies
|
|
run: npm ci
|
|
|
|
- name: Shadowbox Debug Build
|
|
run: npm run action shadowbox/server/build
|
|
|
|
- name: Shadowbox Unit Test
|
|
run: npm run action shadowbox/test
|
|
|
|
- name: Shadowbox Integration Test
|
|
run: npm run action shadowbox/integration_test/run
|
|
|
|
metrics-server:
|
|
name: Metrics Server
|
|
runs-on: ubuntu-latest
|
|
needs: lint
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@v2.3.4
|
|
|
|
- name: Install Node
|
|
uses: actions/setup-node@v3
|
|
with:
|
|
node-version: 18
|
|
cache: npm
|
|
|
|
- name: Install NPM Dependencies
|
|
run: npm ci
|
|
|
|
- name: Metrics Server Debug Build
|
|
run: npm run action metrics_server/build
|
|
|
|
- name: Metrics Server Test
|
|
run: npm run action metrics_server/test
|
|
|
|
sentry-webhook:
|
|
name: Sentry Webhook
|
|
runs-on: ubuntu-latest
|
|
needs: lint
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@v2.3.4
|
|
|
|
- name: Install Node
|
|
uses: actions/setup-node@v3
|
|
with:
|
|
node-version: 18
|
|
cache: npm
|
|
|
|
- name: Install NPM Dependencies
|
|
run: npm ci
|
|
|
|
- name: Sentry Webhook Debug Build
|
|
run: npm run action sentry_webhook/build
|
|
|
|
- name: Sentry Webhook Test
|
|
run: npm run action sentry_webhook/test
|
|
|
|
manager-web-test:
|
|
name: Manager Web Test
|
|
runs-on: ubuntu-latest
|
|
needs: lint
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@v2.3.4
|
|
|
|
- name: Install Node
|
|
uses: actions/setup-node@v3
|
|
with:
|
|
node-version: 18
|
|
cache: npm
|
|
|
|
- name: Install NPM Dependencies
|
|
run: npm ci
|
|
|
|
- name: Manager Web Test
|
|
run: npm run action server_manager/test
|
|
|
|
manager-linux-debug-build:
|
|
name: Manager Linux Debug Build
|
|
runs-on: ubuntu-latest
|
|
needs: manager-web-test
|
|
env:
|
|
SENTRY_DSN: debug
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@v2.3.4
|
|
|
|
- name: Install Node
|
|
uses: actions/setup-node@v3
|
|
with:
|
|
node-version: 18
|
|
cache: npm
|
|
|
|
- name: Install NPM Dependencies
|
|
run: npm ci
|
|
|
|
- name: Build Linux Manager
|
|
run: npm run action server_manager/electron_app/build linux
|
|
|
|
manager-windows-debug-build:
|
|
name: Manager Windows Debug Build
|
|
runs-on: windows-2019
|
|
needs: manager-web-test
|
|
env:
|
|
SENTRY_DSN: debug
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@v2.3.4
|
|
|
|
- name: Install Node
|
|
uses: actions/setup-node@v3
|
|
with:
|
|
node-version: 18
|
|
cache: npm
|
|
|
|
- name: Install NPM Dependencies
|
|
run: npm ci
|
|
|
|
- name: Build Windows Manager
|
|
run: npm run action server_manager/electron_app/build windows
|
|
|
|
manager-mac-debug-build:
|
|
name: Manager MacOS Debug Build
|
|
runs-on: macos-11
|
|
needs: manager-web-test
|
|
env:
|
|
SENTRY_DSN: debug
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@v2.3.4
|
|
|
|
- name: Install Node
|
|
uses: actions/setup-node@v3
|
|
with:
|
|
node-version: 18
|
|
cache: npm
|
|
|
|
- name: Install NPM Dependencies
|
|
run: npm ci
|
|
|
|
- name: Set XCode Version
|
|
run: sudo xcode-select -switch /Applications/Xcode_13.2.app
|
|
|
|
- name: Build MacOS Manager
|
|
run: npm run action server_manager/electron_app/build macos
|