mirror of
https://github.com/OutlineFoundation/outline-server.git
synced 2026-08-04 14:37:34 +00:00
Merge branch 'daniellacosse/issue-1003' into daniellacosse/action-proposal
This commit is contained in:
commit
ef506d9813
1 changed files with 28 additions and 153 deletions
181
.github/workflows/test.yml
vendored
181
.github/workflows/test.yml
vendored
|
|
@ -1,4 +1,4 @@
|
|||
name: Test
|
||||
name: Build and Test
|
||||
|
||||
on:
|
||||
pull_request:
|
||||
|
|
@ -8,9 +8,11 @@ on:
|
|||
- opened
|
||||
- synchronize
|
||||
|
||||
|
||||
jobs:
|
||||
setup:
|
||||
name: Setup and Lint
|
||||
manager:
|
||||
name: Build and Test
|
||||
|
||||
runs-on: ${{ matrix.os }}
|
||||
strategy:
|
||||
matrix:
|
||||
|
|
@ -18,164 +20,37 @@ jobs:
|
|||
os: [ubuntu-20.04]
|
||||
# Don't cancel jobs on other platforms if one fails
|
||||
fail-fast: false
|
||||
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v2
|
||||
|
||||
- name: Install Node
|
||||
uses: actions/setup-node@v2
|
||||
steps:
|
||||
- name: Checkout repo
|
||||
uses: actions/checkout@v1
|
||||
|
||||
- name: Install Node.js
|
||||
uses: actions/setup-node@v1
|
||||
with:
|
||||
node-version: 16
|
||||
|
||||
- name: Cache Dependencies
|
||||
id: cache
|
||||
uses: actions/cache@v2
|
||||
with:
|
||||
path: |
|
||||
./node_modules
|
||||
./src/**/node_modules
|
||||
key: ${{ matrix.os }};TEST4;${{ hashFiles('package-lock.json' )}}
|
||||
|
||||
- name: Install Dependencies
|
||||
if: steps.cache.outputs.cache-hit != 'true'
|
||||
- name: Install dependencies
|
||||
run: NODE_DTRACE_PROVIDER_REQUIRE=hard npm ci
|
||||
|
||||
- name: Sanitize Dependency Permissions for Cache
|
||||
if: steps.cache.outputs.cache-hit != 'true'
|
||||
run: |
|
||||
chmod -v -R 777 ./node_modules
|
||||
chmod -v -R 777 ./src/**/node_modules
|
||||
|
||||
- name: Lint
|
||||
run: npm run lint
|
||||
run: npm lint
|
||||
|
||||
manager:
|
||||
name: Manager
|
||||
needs: setup
|
||||
runs-on: ${{ matrix.os }}
|
||||
strategy:
|
||||
matrix:
|
||||
os: [ubuntu-20.04]
|
||||
fail-fast: false
|
||||
- name: Manager
|
||||
run: |
|
||||
SENTRY_DSN='test' npm run do server_manager/electron_app/release_linux
|
||||
npm run action server_manager/test
|
||||
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v2
|
||||
- name: Shadowbox
|
||||
if: runner.os == 'Linux'
|
||||
run: |
|
||||
npm run action shadowbox/server/build
|
||||
npm run action shadowbox/test
|
||||
npm run action shadowbox/integration_test/run
|
||||
|
||||
- name: Install Node
|
||||
uses: actions/setup-node@v2
|
||||
with:
|
||||
node-version: 16
|
||||
- name: Metrics Server
|
||||
if: runner.os == 'Linux'
|
||||
run: |
|
||||
npm run action metrics_server/build
|
||||
npm run action metrics_server/test
|
||||
|
||||
- name: Cache Dependencies
|
||||
id: cache
|
||||
uses: actions/cache@v2
|
||||
with:
|
||||
path: ./node_modules
|
||||
key: ${{ matrix.os }};TEST4;${{ hashFiles('package-lock.json' )}}
|
||||
|
||||
- name: Linux Release
|
||||
run: SENTRY_DSN='test' npm run action server_manager/electron_app/release_linux
|
||||
|
||||
- name: Unit Test
|
||||
run: npm run action server_manager/test
|
||||
|
||||
shadowbox:
|
||||
name: Shadowbox
|
||||
needs: setup
|
||||
runs-on: ${{ matrix.os }}
|
||||
strategy:
|
||||
matrix:
|
||||
os: [ubuntu-20.04]
|
||||
fail-fast: false
|
||||
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v2
|
||||
|
||||
- name: Install Node
|
||||
uses: actions/setup-node@v2
|
||||
with:
|
||||
node-version: 16
|
||||
|
||||
- name: Cache Dependencies
|
||||
id: cache
|
||||
uses: actions/cache@v2
|
||||
with:
|
||||
path: |
|
||||
./node_modules
|
||||
./src/**/node_modules
|
||||
key: ${{ matrix.os }};TEST4;${{ hashFiles('package-lock.json' )}}
|
||||
|
||||
- name: Build
|
||||
run: npm run action shadowbox/server/build
|
||||
|
||||
- name: Unit Test
|
||||
run: npm run action shadowbox/test
|
||||
|
||||
- name: Integration Test
|
||||
run: npm run action shadowbox/integration_test/start
|
||||
|
||||
metrics:
|
||||
name: Metrics Server
|
||||
needs: setup
|
||||
runs-on: ${{ matrix.os }}
|
||||
strategy:
|
||||
matrix:
|
||||
os: [ubuntu-20.04]
|
||||
fail-fast: false
|
||||
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v2
|
||||
|
||||
- name: Install Node
|
||||
uses: actions/setup-node@v2
|
||||
with:
|
||||
node-version: 16
|
||||
|
||||
- name: Cache Dependencies
|
||||
id: cache
|
||||
uses: actions/cache@v2
|
||||
with:
|
||||
path: |
|
||||
./node_modules
|
||||
./src/**/node_modules
|
||||
key: ${{ matrix.os }};TEST4;${{ hashFiles('package-lock.json' )}}
|
||||
|
||||
- name: Build
|
||||
run: npm run action metrics_server/build
|
||||
|
||||
- name: Unit Test
|
||||
run: npm run action metrics_server/test
|
||||
|
||||
sentry:
|
||||
name: Sentry Webhook
|
||||
needs: setup
|
||||
runs-on: ${{ matrix.os }}
|
||||
strategy:
|
||||
matrix:
|
||||
os: [ubuntu-20.04]
|
||||
fail-fast: false
|
||||
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v2
|
||||
|
||||
- name: Install Node
|
||||
uses: actions/setup-node@v2
|
||||
with:
|
||||
node-version: 16
|
||||
|
||||
- name: Cache Dependencies
|
||||
id: cache
|
||||
uses: actions/cache@v2
|
||||
with:
|
||||
path: |
|
||||
./node_modules
|
||||
./src/**/node_modules
|
||||
key: ${{ matrix.os }};TEST4;${{ hashFiles('package-lock.json' )}}
|
||||
|
||||
- name: Build
|
||||
run: npm run action sentry_webhook/build
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue