-
Notifications
You must be signed in to change notification settings - Fork 0
39 lines (30 loc) · 986 Bytes
/
ci.yml
File metadata and controls
39 lines (30 loc) · 986 Bytes
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
name: CI
on:
push:
branches:
- main
pull_request:
jobs:
test:
runs-on: windows-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Install Chocolatey
run: |
Set-ExecutionPolicy Bypass -Scope Process -Force; `
[System.Net.ServicePointManager]::SecurityProtocol = [System.Net.ServicePointManager]::SecurityProtocol -bor 3072; `
iex ((New-Object System.Net.WebClient).DownloadString('https://community.chocolatey.org/install.ps1'))
- name: Verify Chocolatey installation
run: choco --version
- name: Change directory to nx-chocolatey
working-directory: packages/nx-chocolatey
run: |
# Pack the Chocolatey package
choco pack
# Test installing the package locally
choco install nx -s . --ignore-dependencies
# Verify the installation
nx --version
# Uninstall the package after testing
choco uninstall nx -y