mirror of
https://github.com/servo/servo.git
synced 2025-08-06 14:10:11 +01:00
Add limited job that runs against pull requests.
This commit is contained in:
parent
0294838d73
commit
3237f3852c
1 changed files with 30 additions and 0 deletions
30
.github/workflows/pull-request.yml
vendored
Normal file
30
.github/workflows/pull-request.yml
vendored
Normal file
|
@ -0,0 +1,30 @@
|
||||||
|
name: Basic cross-platform builds and checks
|
||||||
|
on:
|
||||||
|
pull_request:
|
||||||
|
branches: ["**"]
|
||||||
|
|
||||||
|
env:
|
||||||
|
RUST_BACKTRACE: 1
|
||||||
|
SHELL: /bin/bash
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
build-linux:
|
||||||
|
name: Build (Linux)
|
||||||
|
runs-on: ubuntu-20.04
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v2
|
||||||
|
with:
|
||||||
|
fetch-depth: 2
|
||||||
|
- name: Bootstrap
|
||||||
|
run: |
|
||||||
|
python3 -m pip install --upgrade pip virtualenv
|
||||||
|
sudo apt update
|
||||||
|
python3 ./mach bootstrap
|
||||||
|
- name: Tidy
|
||||||
|
run: python3 ./mach test-tidy --no-progress --all
|
||||||
|
- name: Release build
|
||||||
|
run: python3 ./mach build --release
|
||||||
|
- name: Unit tests
|
||||||
|
run: python3 ./mach test-unit --release
|
||||||
|
- name: Lockfile check
|
||||||
|
run: ./etc/ci/lockfile_changed.sh
|
Loading…
Add table
Add a link
Reference in a new issue