-
Notifications
You must be signed in to change notification settings - Fork 2
53 lines (42 loc) · 1.16 KB
/
ci.yml
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
on:
pull_request:
push:
branches:
- main
workflow_dispatch:
name: continuous-integration
defaults:
run:
shell: nu {0}
env:
NU_LOG_LEVEL: DEBUG
jobs:
tests:
strategy:
fail-fast: true
matrix:
platform: [windows-latest, macos-latest, ubuntu-20.04]
runs-on: ${{ matrix.platform }}
steps:
- uses: actions/checkout@v3
- uses: hustcer/[email protected]
with:
version: '0.86'
- name: Download the source of Nupm
run: git clone --depth 1 https://github.com/nushell/nupm /tmp/nupm/
- name: Install Nupm
run: |
use /tmp/nupm/nupm
with-env {NUPM_HOME: ("~/.local/share/nupm" | path expand)} {
# FIXME: use --no-confirm option
# related to https://github.com/nushell/nupm/pull/42
mkdir ("~/.local/share/nupm" | path expand)
nupm install --force --path /tmp/nupm
}
- name: Show Nushell Version
run: version
- name: Run the tests
run: |
# FIXME: is there a way to not rely on hardcoded paths here?
use ~/.local/share/nupm/modules/nupm
nupm test