Skip to content

Commit

Permalink
build matrix #64
Browse files Browse the repository at this point in the history
  • Loading branch information
frosklis committed Mar 22, 2021
1 parent 8903ea0 commit 3739eac
Showing 1 changed file with 15 additions and 8 deletions.
23 changes: 15 additions & 8 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name: Test

name: Pass tests
# - Check that the package passes the tests correctly in all Rust versions
on:
push:

Expand All @@ -8,12 +8,19 @@ env:

jobs:
build:

runs-on: ubuntu-latest
strategy:
matrix:
rust: [stable, 1.38.0, beta, nightly]

steps:
- uses: actions/checkout@v2
- name: Build
run: cargo build
- name: Run tests
run: cargo test --verbose
- uses: actions/checkout@v2
- name: Install rust toolchain
uses: actions-rs/toolchain@v1 # https://github.com/marketplace/actions/rust-toolchain
with:
toolchain: ${{ matrix.rust }}
override: true
- name: Build
run: cargo build
- name: Run tests
run: cargo test

0 comments on commit 3739eac

Please sign in to comment.