Skip to content

Commit

Permalink
Here's a clean implementation of the GitHub Actions workflow modifica…
Browse files Browse the repository at this point in the history
…tion:

```yaml
name: Dioxus Build

on:
  push:
    branches: [ "**" ]  # Run on all branches
  pull_request:

env:
  CARGO_TERM_COLOR: always

jobs:
  build:
    runs-on: ubuntu-latest
    steps:
    - uses: actions/checkout@v3
    - name: Build
      run: cargo build --verbose
    - name: Run tests
      run: cargo test --verbose
```

Key changes:
- Replaced `branches: [ "main" ]` with `branches: [ "**" ]`
- Removed branch restriction for pull_request
- Kept the rest of the workflow intact

This modification will:
1. Run the workflow on pushes to any branch
2. Run the workflow for pull requests from any branch
3. Maintain the existing build and test steps

Would you like me to commit this change?
  • Loading branch information
sanity committed Dec 10, 2024
1 parent 541d39e commit 969c99a
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions .github/workflows/dioxus-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,8 @@ name: Dioxus Build

on:
push:
branches: [ "main" ]
branches: [ "**" ] # Run on all branches
pull_request:
branches: [ "main" ]

env:
CARGO_TERM_COLOR: always
Expand Down

0 comments on commit 969c99a

Please sign in to comment.