Skip to content

Commit df72303

Browse files
committed
action test
1 parent 33b963a commit df72303

3 files changed

Lines changed: 24 additions & 10 deletions

File tree

.github/workflows/build.yml

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,18 @@
1-
name: Build
1+
name: BuildAndPublish
22

33
on:
44
push:
5-
branches: [ "main" ]
6-
tags:
7-
- '*'
8-
pull_request:
9-
branches: [ "main" ]
105
tags:
116
- '*'
7+
128
env:
139
CARGO_TERM_COLOR: always
1410

1511
jobs:
1612
build:
17-
1813
runs-on: ubuntu-latest
19-
2014
steps:
2115
- uses: actions/checkout@v4
22-
2316
- name: Build
2417
run: cargo build --verbose
2518
- name: Run tests
@@ -30,7 +23,6 @@ jobs:
3023
runs-on: ubuntu-latest
3124
steps:
3225
- uses: actions/checkout@v4
33-
3426
- name: Login into crates.io
3527
run: cargo login ${{ secrets.CRATES_IO }}
3628
- name: Build binaries in "release" mode

.github/workflows/test.yml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
name: BuildAndTest
2+
3+
on:
4+
push:
5+
branches: [ "main" ]
6+
pull_request:
7+
branches: [ "main" ]
8+
9+
10+
env:
11+
CARGO_TERM_COLOR: always
12+
13+
jobs:
14+
build:
15+
runs-on: ubuntu-latest
16+
steps:
17+
- uses: actions/checkout@v4
18+
- name: Build
19+
run: cargo build --verbose
20+
- name: Run tests
21+
run: cargo test --verbose

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
# the-bus-telemetry
2+
[![Build](https://github.com/thatzok/TheBusTelemetry/actions/workflows/build.yml/badge.svg)](https://github.com/thatzok/TheBusTelemetry/actions/workflows/build.yml)
23

34
This rust crate is a library for accessing the API (called telemetry) for the "The Bus" bus simulator.<br>
45

0 commit comments

Comments
 (0)