Skip to content

Nero/dev/runner upgraded #14

Nero/dev/runner upgraded

Nero/dev/runner upgraded #14

name: Rust Testsuite CI
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
test:
runs-on: ubuntu-latest
steps:
# Check out the repository
- name: Checkout code
uses: actions/checkout@v3
# Set up Rust
- name: Set up Rust
uses: actions-rs/toolchain@v1
with:
toolchain: stable
override: true
# Try to download the testsuite_results.json artifact (if it exists)
# - name: Download testsuite_results.json artifact
# id: download-artifact
# uses: actions/download-artifact@v4
# with:
# name: testsuite_results.json
# path: ./
# if-no-files-found: warn
# continue-on-error: true
# Rename the downloaded file to results_original.json
# - name: Rename testsuite_results.json to results_original.json
# if: steps.download-artifact.outcome == 'success'
# run: mv testsuite_results.json results_original.json
# Run your Rust tests
- name: Run tests
run: cargo test
# Upload the new testsuite_results.json as an artifact (only on main branch)
- name: Upload testsuite_results.json artifact
# Uncomment this after uploading the results first time
# if: github.ref == 'refs/heads/main'
uses: actions/upload-artifact@v4
with:
name: testsuite_results.json
path: testsuite_results.json