Compare commits

...
Sign in to create a new pull request.

13 commits

Author SHA1 Message Date
James Salter
f09cc044b2 correct project typo 2021-10-20 11:46:46 +01:00
James Salter
528f8b119e depend on develop environment 2021-10-20 11:39:52 +01:00
James Salter
e07282e1cc Merge branch 'develop' of github.com:vector-im/element-web into ci-package 2021-10-20 11:19:47 +01:00
James Salter
4ddb4b921d remove whitespace 2021-10-20 11:10:58 +01:00
James Salter
5a3466a75e attempt to pull secrets into the environment 2021-10-20 11:10:21 +01:00
James Salter
fdd7cf7fa6 fix yaml 2021-10-20 10:57:46 +01:00
James Salter
dce321c241 Add non-secret sentry environment variables 2021-10-20 10:56:08 +01:00
James Salter
bbdfb54903 Rename build to stats (as it generates stats, not a build) 2021-10-19 13:20:32 +01:00
James Salter
90c18aca5d fix job name 2021-10-19 13:13:30 +01:00
James Salter
a60dc77468 add missing steps 2021-10-19 13:12:17 +01:00
James Salter
1d9bdd732f fix indent 2021-10-19 13:06:27 +01:00
James Salter
6d5a15f7a8 touch 2021-10-19 12:59:21 +01:00
James Salter
5a4b4db811 Commit first attempt at gha based ci packaging 2021-10-18 16:27:56 +01:00
2 changed files with 77 additions and 0 deletions

77
.github/workflows/ci_package.yml vendored Normal file
View file

@ -0,0 +1,77 @@
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
environment: develop
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_AUTH_TOKEN: ${{ secrets.SENTRY_AUTH_TOKEN }}
SENTRY_DSN: ${{ secrets.SENTRY_DSN }}
SENTRY_URL: ${{ secrets.SENTRY_URL }}
SENTRY_ORG: sentry
SENTRY_PROJECT: riot-web
- uses: actions/upload-artifact@v2
with:
path: dist/*.tar.gz

0
foo.txt Normal file
View file