Skip to content

Commit b88c5fa

Browse files
author
梶塚太智
authored
Update rust.yml
1 parent bc34b06 commit b88c5fa

File tree

1 file changed

+20
-14
lines changed

1 file changed

+20
-14
lines changed

.github/workflows/rust.yml

Lines changed: 20 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,28 @@
1-
name: Rust
1+
name: Test
22

33
on:
4-
push:
5-
branches: [ "main" ]
64
pull_request:
7-
branches: [ "main" ]
8-
9-
env:
10-
CARGO_TERM_COLOR: always
5+
branches:
6+
- main
117

128
jobs:
13-
build:
14-
9+
test:
1510
runs-on: ubuntu-latest
1611

1712
steps:
18-
- uses: actions/checkout@v3
19-
- name: Build
20-
run: cargo build --verbose
21-
- name: Run tests
22-
run: cargo test --verbose
13+
- name: Checkout repository
14+
uses: actions/checkout@v2
15+
16+
- name: Set up Rust
17+
uses: actions/setup-rust@v1
18+
with:
19+
rust-version: 1.54.0
20+
21+
- name: Run tests
22+
run: cargo test
23+
24+
- name: Merge pull request (if tests pass)
25+
if: ${{ success() }}
26+
uses: pascalgn/[email protected]
27+
with:
28+
github-token: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)