This repository has been archived by the owner on Oct 4, 2024. It is now read-only.
🔄 synced file(s) with tiki/internal-repo-sync #27
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Tests | |
on: | |
pull_request: | |
branches: | |
- main | |
concurrency: | |
group: ${{ github.ref }}-${{ github.workflow }} | |
cancel-in-progress: true | |
jobs: | |
Test: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Setup Project | |
run: | | |
git config --global url."https://${{ secrets.GH_PROJECT_PAT }}@github.com".insteadOf https://github.com | |
rustup default nightly | |
cargo install cargo2junit | |
- name: Cargo Test | |
run: | | |
cd endpoint | |
cargo test -- -Z unstable-options --format json --report-time | cargo2junit > test-results.xml | |
- name: Upload Results | |
uses: actions/upload-artifact@v3 | |
if: success() || failure() | |
with: | |
name: test-results | |
path: endpoint/test-results.xml |