swap ci to use github actions

This commit is contained in:
Adam Jeniski 2022-09-27 13:46:35 -04:00 committed by Ajetski
parent bd3d47f442
commit 71f27dca30
2 changed files with 33 additions and 14 deletions

33
.github/workflows/rust.yml vendored Normal file
View File

@ -0,0 +1,33 @@
name: Tests
on:
push:
branches: [ "master" ]
pull_request:
branches: [ "master" ]
env:
CARGO_TERM_COLOR: always
jobs:
tests_2020:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Build
run: cd 2020 && cargo build --verbose
- name: Run tests
run: cd 2020 && cargo test --verbose
tests_2021:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Build
run: cd 2021 && cargo build --verbose
- name: Run tests
run: cd 2021 && cargo test --verbose

View File

@ -1,14 +0,0 @@
image: "rust:latest"
# Use cargo to test the project
test:2020:
script:
- cd 2020
- rustc --version && cargo --version # Print version info for debugging
- cargo test --workspace --verbose -j 8
test:2021:
script:
- cd 2021
- rustc --version && cargo --version # Print version info for debugging
- cargo test --workspace --verbose -j 8