mirror of
https://github.com/element-hq/element-web
synced 2024-11-26 03:05:51 +03:00
6c87e294c4
* Tidy workflows * Update get-version-from-git.sh * Run tests in Actions * Upload coverage to SonarCloud * Run linters in Actions * Run builds in Actions, consolidating with sentry uploader * Update sonar-project.properties * chmod +x * Iterate * Use new env vars * Delete yarn-sub.js * Use re-usable sonarqube action * Add README badges * Match reality
26 lines
633 B
YAML
26 lines
633 B
YAML
name: Build and Package
|
|
on:
|
|
pull_request: { }
|
|
push:
|
|
branches: [ master ]
|
|
# develop pushes and repository_dispatch handled in build_develop.yaml
|
|
env:
|
|
# These must be set for fetchdep.sh to get the right branch
|
|
REPOSITORY: ${{ github.repository }}
|
|
PR_NUMBER: ${{ github.event.pull_request.number }}
|
|
jobs:
|
|
build:
|
|
name: "Build"
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
|
|
- uses: actions/setup-node@v3
|
|
with:
|
|
cache: 'yarn'
|
|
|
|
- name: Install Dependencies
|
|
run: "./scripts/layered.sh"
|
|
|
|
- name: Build & Package
|
|
run: "./scripts/ci_package.sh"
|