Update main.yml #10
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: CI | |
on: [push, pull_request, workflow_dispatch] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up Nushell | |
env: | |
VERSION: '0.101.0' | |
FILENAMEBASE: nu-${VERSION}-x86_64-unknown-linux-musl | |
FILENAMEPACK: nu-${VERSION}-x86_64-unknown-linux-musl.tar.gz | |
run: | | |
set -e | |
wget --no-verbose https://github.com/nushell/nushell/releases/download/${{env.VERSION}}/${{env.FILENAMEPACK}} | |
tar xf ${{env.FILENAMEPACK}} | |
mv ${{env.FILENAMEBASE}} nu | |
chmod u+x nu/nu | |
- name: Set up nu_scripts | |
run: git clone https://github.com/nushell/nu_scripts.git | |
- name: Test | |
run: | | |
set -e | |
# https://github.com/nushell/nushell/issues/14745 | |
# nu/nu --env-config env.nu --config config.nu -c 'echo $env.NU_VERSION' | |
echo Testing env.nu | |
nu/nu -c 'source env.nu' | |
echo Testing config.nu | |
nu/nu --env-config env.nu -c 'source config.nu' | |
echo Testing env and config | |
nu/nu --env-config env.nu --config config.nu -c 'echo $env.NU_VERSION' |