mirror of
https://github.com/Ajetski/advent-of-code.git
synced 2025-09-30 09:23:17 -09:00
swap ci to use github actions
This commit is contained in:
parent
bd3d47f442
commit
71f27dca30
33
.github/workflows/rust.yml
vendored
Normal file
33
.github/workflows/rust.yml
vendored
Normal 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
|
@ -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
|
Loading…
x
Reference in New Issue
Block a user