diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml new file mode 100644 index 0000000..b82cb52 --- /dev/null +++ b/.github/workflows/rust.yml @@ -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 diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml deleted file mode 100644 index 1c46822..0000000 --- a/.gitlab-ci.yml +++ /dev/null @@ -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