-
Notifications
You must be signed in to change notification settings - Fork 9
59 lines (55 loc) · 1.59 KB
/
build.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
name: Assets Build and Test
on:
pull_request:
paths-ignore:
- '**.md'
push:
branches:
- main
- develop
- release/*
paths-ignore:
- '**.md'
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: '20'
- name: Build Setup Script
run: |
npm i -g pnpm
pnpm i --registry=https://registry.npmmirror.com
pnpm run lint
pnpm run build
test:
strategy:
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
crate:
- { owner: nushell, name: nushell }
runs-on: ${{ matrix.os }}
name: test (${{matrix.os}}, ${{ matrix.crate.owner }}/${{ matrix.crate.name }})
steps:
- uses: actions/checkout@v4
- name: Setup ${{ matrix.crate.owner }}/${{ matrix.crate.name }}
uses: ./
with:
version: v0.95.0
enable-plugins: true
env:
ACTIONS_STEP_DEBUG: true
- name: Show Nu Path and Related Assets
run: which $(printf nu | tr '[:upper:]' '[:lower:]') && echo "Dir contents --->:" && ls -la "$(dirname `which nu`)"
shell: bash
- name: Spawn a Nu Session and Display Version Info
run: nu -c 'print (version); print $"(char nl)Dir contents:(char nl)"; ls ((which nu).path.0 | path dirname)'
shell: bash
# https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#custom-shell
- name: Use Nu as Default Shell
shell: nu {0}
run: |
print $'Current env:(char nl)'
print $env