-
Notifications
You must be signed in to change notification settings - Fork 3
68 lines (58 loc) · 2.24 KB
/
main.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
60
61
62
63
64
65
66
67
68
name: Run CrossModel
on:
push:
branches:
- 'CI/CD-pipeline'
pull_request:
branches:
- 'CI/CD-pipeline'
jobs:
build:
runs-on: windows-2019
steps:
- name: check out # is needed to read the files on the root folder of the repo
uses: actions/checkout@v3
- name: Set up Node js to use version 16.14.0
uses: actions/setup-node@v2
with:
node-version: '16.14.0'
- name: Node version
uses: Amadevus/pwsh-script@v2.0.3
with:
# PowerShell script to execute in Actions-hydrated context
script: |
node -v | Write-Host
- name: Setup Python to use version 3.7.9
uses: actions/setup-python@v4.6.1
with:
# Version range or exact version of Python or PyPy to use, using SemVer's version range syntax. Reads from .python-version if unset.
python-version: 3.7.9
- name: Python version
uses: Amadevus/pwsh-script@v2.0.3
with:
# PowerShell script to execute in Actions-hydrated context
script: |
python --version | Write-Host
- name: Set up yarn to use version 1.22.18
uses: Amadevus/pwsh-script@v2.0.3
with:
# PowerShell script to execute in Actions-hydrated context
script: |
yarn policies set-version 1.22.18
- name: Yarn version
uses: Amadevus/pwsh-script@v2.0.3
with:
# PowerShell script to execute in Actions-hydrated context
script: |
yarn --version | Write-Host
- name: Yarn build
uses: Amadevus/pwsh-script@v2.0.3
with:
# PowerShell script to execute in Actions-hydrated context
script: |
yarn
#- name: Yarn start browser
# run: |
# yarn start:browser
# curl http://localhost:3000/
# echo DONE