Skip to content

Commit

Permalink
Merge pull request #2443 from HTGAzureX1212/nightly
Browse files Browse the repository at this point in the history
Add Merge Group Test
  • Loading branch information
HTGAzureX1212 authored Nov 10, 2024
2 parents ecbc01d + f2f4f50 commit a8c64cd
Show file tree
Hide file tree
Showing 3 changed files with 37 additions and 13 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/lints.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:
ClippyAll:
name: Clippy
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4
- name: Install latest nightly Rust toolchain
Expand All @@ -23,7 +23,7 @@ jobs:
- name: Install Python 3.11
uses: actions/setup-python@v5
with:
python-version: '3.11'
python-version: "3.11"
- name: Run Clippy
run: python ./x.py clippy

Expand Down
14 changes: 9 additions & 5 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
@@ -1,21 +1,24 @@
name: Tests

on:
merge_group:
types:
- checks_requested
pull_request:
push:
branches:
- nightly
- stable
- automation/bors/approve
- automation/bors/try

env:
CARGO_TERM_COLOR: always

jobs:
BuildAll:
name: Build
if: ${{ github.event_name == 'merge_group' }}
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4
- name: Install latest nightly Rust toolchain
Expand All @@ -25,14 +28,15 @@ jobs:
- name: Install Python 3.11
uses: actions/setup-python@v5
with:
python-version: '3.11'
python-version: "3.11"
- name: Run Build
run: python ./x.py build

TestAll:
name: Test
needs:
- BuildAll
if: ${{ github.event_name == 'merge_group' }}
runs-on: ubuntu-latest

steps:
Expand All @@ -44,7 +48,7 @@ jobs:
- name: Install Python 3.11
uses: actions/setup-python@v5
with:
python-version: '3.11'
python-version: "3.11"
- name: Run Build
run: python ./x.py build -- discord-frontend
- name: Run Tests
Expand Down
32 changes: 26 additions & 6 deletions rust-utilities/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit a8c64cd

Please sign in to comment.