Skip to content

Commit

Permalink
ci: set up github action workflow for rust
Browse files Browse the repository at this point in the history
  • Loading branch information
PureWhiteWu committed Oct 22, 2021
1 parent fa15b13 commit f215d96
Show file tree
Hide file tree
Showing 3 changed files with 66 additions and 0 deletions.
22 changes: 22 additions & 0 deletions .github/workflows/cargo-test-linux.yml
@@ -0,0 +1,22 @@
name: cargo test

on:
push:
branches: [ master ]
pull_request:
branches: [ master ]

env:
CARGO_TERM_COLOR: always

jobs:
build:

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- name: Make clippy happy
run: cargo clippy
- name: Run tests
run: cargo test --verbose
22 changes: 22 additions & 0 deletions .github/workflows/cargo-test-macos.yml
@@ -0,0 +1,22 @@
name: cargo test

on:
push:
branches: [ master ]
pull_request:
branches: [ master ]

env:
CARGO_TERM_COLOR: always

jobs:
build:

runs-on: macos-latest

steps:
- uses: actions/checkout@v2
- name: Make clippy happy
run: cargo clippy
- name: Run tests
run: cargo test --verbose
22 changes: 22 additions & 0 deletions .github/workflows/cargo-test-windows.yml
@@ -0,0 +1,22 @@
name: cargo test

on:
push:
branches: [ master ]
pull_request:
branches: [ master ]

env:
CARGO_TERM_COLOR: always

jobs:
build:

runs-on: windows-latest

steps:
- uses: actions/checkout@v2
- name: Make clippy happy
run: cargo clippy
- name: Run tests
run: cargo test --verbose

0 comments on commit f215d96

Please sign in to comment.