mirror of
https://github.com/nushell/nushell.git
synced 2025-05-05 23:42:56 +00:00
Test on Beta Toolchain (#15280)
# Description In the [Nushell core team meeting 2025-02-19](https://hackmd.io/r3V83bMdQqKMwFxz90nBDg?view) we decided to run tests on the beta toolchain to contribute to the Rust project as a whole. These tests do not need to succeed for us to go further but allow us to investigate if the beta toolchain broke something. # User-Facing Changes None. # Tests + Formatting Just a new workflow. # After Submitting Watch out for modification of this file changing the notified person
This commit is contained in:
parent
b432866dc9
commit
58f7cfd099
52
.github/workflows/beta-test.yml
vendored
Normal file
52
.github/workflows/beta-test.yml
vendored
Normal file
@ -0,0 +1,52 @@
|
|||||||
|
name: Test on Beta Toolchain
|
||||||
|
# This workflow is made to run our tests on the beta toolchain to validate that
|
||||||
|
# the beta toolchain works.
|
||||||
|
# We do not intend to test here that we are working correctly but rather that
|
||||||
|
# the beta toolchain works correctly.
|
||||||
|
# The ci.yml handles our actual testing with our guarantees.
|
||||||
|
|
||||||
|
on:
|
||||||
|
schedule:
|
||||||
|
# If this workflow fails, GitHub notifications will go to the last person
|
||||||
|
# who edited this line.
|
||||||
|
# See: https://docs.github.com/en/actions/monitoring-and-troubleshooting-workflows/monitoring-workflows/notifications-for-workflow-runs
|
||||||
|
- cron: '0 0 * * *' # Runs daily at midnight UTC
|
||||||
|
|
||||||
|
env:
|
||||||
|
NUSHELL_CARGO_PROFILE: ci
|
||||||
|
NU_LOG_LEVEL: DEBUG
|
||||||
|
|
||||||
|
concurrency:
|
||||||
|
group: ${{ github.workflow }}-${{ github.head_ref && github.ref || github.run_id }}
|
||||||
|
cancel-in-progress: true
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
build-and-test:
|
||||||
|
# this job is more for testing the beta toolchain and not our tests, so if
|
||||||
|
# this fails but the tests of the regular ci pass, then this is fine
|
||||||
|
continue-on-error: true
|
||||||
|
|
||||||
|
strategy:
|
||||||
|
fail-fast: true
|
||||||
|
matrix:
|
||||||
|
platform: [windows-latest, macos-latest, ubuntu-22.04]
|
||||||
|
|
||||||
|
runs-on: ${{ matrix.platform }}
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v4
|
||||||
|
|
||||||
|
- run: rustup update beta
|
||||||
|
|
||||||
|
- name: Tests
|
||||||
|
run: cargo +beta test --workspace --profile ci --exclude nu_plugin_*
|
||||||
|
- name: Check for clean repo
|
||||||
|
shell: bash
|
||||||
|
run: |
|
||||||
|
if [ -n "$(git status --porcelain)" ]; then
|
||||||
|
echo "there are changes";
|
||||||
|
git status --porcelain
|
||||||
|
exit 1
|
||||||
|
else
|
||||||
|
echo "no changes in working directory";
|
||||||
|
fi
|
Loading…
x
Reference in New Issue
Block a user