element-web/.github/workflows/ci_package.yml
2021-10-20 10:56:08 +01:00

73 lines
1.9 KiB
YAML

on:
push:
branches:
- ci-package
jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
node-version: '14'
cache: 'yarn'
- run: ./scripts/fetch-develop.deps.sh --depth 1
- run: yarn install
- run: yarn lint:js
- run: yarn lint:types
- run: yarn lint:style
stats:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
node-version: '14'
cache: 'yarn'
- run: ./scripts/fetch-develop.deps.sh --depth 1
- run: yarn install
- run: yarn build-stats
- uses: actions/upload-artifact@v2
with:
path: webpack-stats.json
tests:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
node-version: '14'
cache: 'yarn'
- run: ./scripts/fetch-develop.deps.sh --depth 1
- run: yarn install
- run: yarn build:genfiles
- run: yarn test
i18n:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
node-version: '14'
cache: 'yarn'
- run: ./scripts/fetch-develop.deps.sh --depth 1
- run: yarn install
- run: yarn diff-i18n
package:
needs: [lint, stats, tests, i18n]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
node-version: '14'
cache: 'yarn'
- run: ./scripts/fetch-develop.deps.sh --depth 1
- run: yarn install
- run: ./scripts/ci_package.sh
env:
- SENTRY_ORG: sentry
- SENTRY_PROJECT: riot-webs
- uses: actions/upload-artifact@v2
with:
path: dist/*.tar.gz