Skip to content
This repository was archived by the owner on Aug 11, 2025. It is now read-only.

Commit 39a233b

Browse files
committed
test: Updating the workflow file to build and test on every commit to main
1 parent 0ad4094 commit 39a233b

File tree

1 file changed

+16
-6
lines changed

1 file changed

+16
-6
lines changed

.github/workflows/rust.yml

Lines changed: 16 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,15 @@
1-
name: Rust
1+
# GitHub Actions workflow for building and testing the Rust CLI
2+
name: Rust CI
23

34
on:
45
push:
56
branches: [ "main" ]
67
pull_request:
78
branches: [ "main" ]
89

10+
# Allows you to run this workflow manually from the Actions tab
11+
workflow_dispatch:
12+
913
env:
1014
CARGO_TERM_COLOR: always
1115

@@ -15,8 +19,14 @@ jobs:
1519
runs-on: ubuntu-latest
1620

1721
steps:
18-
- uses: actions/checkout@v4
19-
- name: Build
20-
run: cargo build --verbose
21-
- name: Run tests
22-
run: cargo test --verbose
22+
- name: Checkout repository
23+
uses: actions/checkout@v4
24+
25+
- name: Set git default branch to main
26+
run: git config --global init.defaultBranch main
27+
28+
- name: Build
29+
run: cargo build
30+
31+
- name: Run tests
32+
run: cargo test --verbose

0 commit comments

Comments
 (0)